javascript ripscrip interpreter?
category: gfx [glöplog]
I have been incredibly unfruitful since I started college; no better example of this than the fact that I have been here for years, can code, and yet I have not made a single demo.
One time many months ago I thought, hey, it should be simple enough to throw together a ripscrip renderer for canvas... and do it in Glorious High Definition™ since ripscrip is basically vector art. Never got passed converting meganums and I do not know what I did with the code that did that... but I am sure even that was a waste as either ECMAscript "stdlib" has function to parse numbers with custom radixes, and if not surely someone has already made one.
In fact, maybe someone out there has already did an HTML5 ripscrip interpreter; if so, where is it? if not, would one of you less lathargic/disillusioned with life&school folk make one?
One time many months ago I thought, hey, it should be simple enough to throw together a ripscrip renderer for canvas... and do it in Glorious High Definition™ since ripscrip is basically vector art. Never got passed converting meganums and I do not know what I did with the code that did that... but I am sure even that was a waste as either ECMAscript "stdlib" has function to parse numbers with custom radixes, and if not surely someone has already made one.
In fact, maybe someone out there has already did an HTML5 ripscrip interpreter; if so, where is it? if not, would one of you less lathargic/disillusioned with life&school folk make one?
>has already did
>has function
And suddenly I am twelve.
>has function
And suddenly I am twelve.
havent heard of one but you could easily port if from random converters with open source like this one
not sure how reliable that one is though, never used it.
not sure how reliable that one is though, never used it.
Quote:
either ECMAscript "stdlib" has function to parse numbers with custom radixes
Code:
parseInt('jsyk', 36)
923996
(in fact, *not* using the radix argument on parseInt will tend to screw you up, because then numbers with leading zeros are treated as octal. With hilarious consequences.)
i lol when that happens.