Skip to content

Commit 10ddad8

Browse files
authored
core.R: Add colorMode specific constants (#191)
Signed-off-by: Ce Gao <ce.gao@outlook.com>
1 parent 09a7a1c commit 10ddad8

File tree

2 files changed

+5
-20
lines changed

2 files changed

+5
-20
lines changed

src/rprocessing/applet/BuiltinApplet.java

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -83,26 +83,6 @@ public void noiseDetail(double lod, double falloff) {
8383
super.noiseDetail((int) lod, (float) falloff);
8484
}
8585

86-
public void colorMode(double mode) {
87-
this.logWarningsforCast();
88-
super.colorMode((int) mode);
89-
}
90-
91-
public void colorMode(double mode, float max) {
92-
this.logWarningsforCast();
93-
super.colorMode((int) mode, max);
94-
}
95-
96-
public void colorMode(double mode, float max1, float max2, float max3) {
97-
this.logWarningsforCast();
98-
super.colorMode((int) mode, max1, max2, max3);
99-
}
100-
101-
public void colorMode(double mode, float max1, float max2, float max3, float maxA) {
102-
this.logWarningsforCast();
103-
super.colorMode((int) mode, max1, max2, max3, maxA);
104-
}
105-
10686
public double getPI() {
10787
return PI;
10888
}

src/rprocessing/r/core.R

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,3 +285,8 @@ CONTROL = RLangPApplet$CONTROL
285285
SHIFT = RLangPApplet$SHIFT
286286

287287
print = stdout$print
288+
289+
RGB = RLangPApplet$RGB
290+
ARGB = RLangPApplet$ARGB
291+
HSB = RLangPApplet$HSB
292+
ALPHA = RLangPApplet$ALPHA

0 commit comments

Comments
 (0)