Skip to content

Commit 09a7a1c

Browse files
committed
Merge branch 'master' of github.com:gaocegege/Processing.R
2 parents 54a3a8f + 3e4e4f7 commit 09a7a1c

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

examples/Demo/FiguresTransformation/FiguresTransformation.rpde

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
import(rprocessing.RLangPApplet)
2-
3-
HALF_PI <- pi/2
4-
TWO_PI <- pi * 2
5-
QUARTER_PI <- pi/4
6-
PI <- pi
7-
DIAMETER <- as.integer(3)
8-
RADIUS <- as.integer(2)
9-
101
# Current time of animation
112
time <- 0
123
# Animation duration
@@ -219,7 +210,7 @@ drawWave <- function(p, dir) {
219210
wx = dir * figureRadius * 0.5 * (sin(va * TWO_PI) * (sin(a) + 1)) - dir
220211
wy = map(a, 0, PI, -figureRadius, figureRadius)
221212
vertex(wx, wy)
222-
a = a + RLangPApplet$radians(2)
213+
a = a + radians(2)
223214
}
224215
endShape()
225216
}

src/rprocessing/mode/RLangMode.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ public String[] getExtensions() {
101101
@Override
102102
public File[] getExampleCategoryFolders() {
103103
return new File[] {new File(examplesFolder, "Basics"), new File(examplesFolder, "Libraries"),
104-
new File(examplesFolder, "reference"), new File(examplesFolder, "R Packages")};
104+
new File(examplesFolder, "reference"), new File(examplesFolder, "R Packages"),
105+
new File(examplesFolder, "Demo")};
105106
}
106107

107108
/**

0 commit comments

Comments
 (0)