We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello,
I'm writing my first processing library, and I'm developing in Eclipse. I've been able to get my first "hello world" library compiled and working, but whenever I try to use processing's 'color' datatype, I get a compile error.
I have processing's core.jar on my build path. I'd appreciate any ideas on how to use the color datatype.
Thanks!
Answers
Primitive datatype & keyword
color
doesn't exist in Java!http://processing.org/reference/color_datatype.html
It's merely a Processing's alias (syntax sugar) to Java's primitive datatype & keyword
int
! O:-)http://processing.org/reference/int.html
Processing's IDE got a pre-processor which turns a sketch into a correct Java source code.
Therefore, you gotta do all that work for yourself when using another IDE! >:)
I believe you can do:
Have you checked this?
http://processing.org/tutorials/eclipse/
GoTo, that's super helpful! Thanks for letting me know.
_vk, that link to the link in the tutorial is awesome. That's exactly what I was looking for!
thanks!