Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

core.R: Add colorMode specific constants #191

Merged
merged 1 commit into from
Jul 27, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions src/rprocessing/applet/BuiltinApplet.java
Original file line number Diff line number Diff line change
Expand Up @@ -83,26 +83,6 @@ public void noiseDetail(double lod, double falloff) {
super.noiseDetail((int) lod, (float) falloff);
}

public void colorMode(double mode) {
this.logWarningsforCast();
super.colorMode((int) mode);
}

public void colorMode(double mode, float max) {
this.logWarningsforCast();
super.colorMode((int) mode, max);
}

public void colorMode(double mode, float max1, float max2, float max3) {
this.logWarningsforCast();
super.colorMode((int) mode, max1, max2, max3);
}

public void colorMode(double mode, float max1, float max2, float max3, float maxA) {
this.logWarningsforCast();
super.colorMode((int) mode, max1, max2, max3, maxA);
}

public double getPI() {
return PI;
}
Expand Down
5 changes: 5 additions & 0 deletions src/rprocessing/r/core.R
Original file line number Diff line number Diff line change
Expand Up @@ -285,3 +285,8 @@ CONTROL = RLangPApplet$CONTROL
SHIFT = RLangPApplet$SHIFT

print = stdout$print

RGB = RLangPApplet$RGB
ARGB = RLangPApplet$ARGB
HSB = RLangPApplet$HSB
ALPHA = RLangPApplet$ALPHA