Skip to content

Commit eab8aee

Browse files
authored
core.R: Support static functions in PApplet (#134)
* core.R: Support static functions in PApplet Signed-off-by: Ce Gao <[email protected]> * core.R: Remove comment Signed-off-by: Ce Gao <[email protected]>
1 parent 7e7d7eb commit eab8aee

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

src/rprocessing/r/core.R

+26-1
Original file line numberDiff line numberDiff line change
@@ -193,4 +193,29 @@ vertex = processing$vertex
193193

194194
# Hack
195195
frameCount = processing$frameCount
196-
# radians = processing$radians
196+
197+
# For static functions
198+
import(rprocessing.RLangPApplet)
199+
ceil = RLangPApplet$ceil
200+
constrain = RLangPApplet$constrain
201+
day = RLangPApplet$day
202+
hour = RLangPApplet$hour
203+
degrees = RLangPApplet$degrees
204+
hex = RLangPApplet$hex
205+
launch = RLangPApplet$launch
206+
mag = RLangPApplet$mag
207+
lerp = RLangPApplet$lerp
208+
print = RLangPApplet$print
209+
dist = RLangPApplet$dist
210+
month = RLangPApplet$month
211+
minute = RLangPApplet$minute
212+
norm = RLangPApplet$norm
213+
pow = RLangPApplet$pow
214+
second = RLangPApplet$second
215+
radians = RLangPApplet$radians
216+
println = RLangPApplet$println
217+
sq = RLangPApplet$sq
218+
unbinary = RLangPApplet$unbinary
219+
unhex = RLangPApplet$unhex
220+
year = RLangPApplet$year
221+
map = RLangPApplet$map

0 commit comments

Comments
 (0)