This site requires JavaScript, please enable it in your browser!
Greenfoot back
GoodFatsoGamez
GoodFatsoGamez wrote ...

2016/7/30

I'm having trouble with color sensing

GoodFatsoGamez GoodFatsoGamez

2016/7/30

#
I keep trying to create variables and if statements with "new Color(0, 0, 0)" and an error pops up "cannot find symbol - class Color". Please help me and I am a big noob so I will probably get confused.
elektrikpulse61 elektrikpulse61

2016/7/30

#
You have to make sure you import the Color package. At the top of your code, right underneath the very first line, you should type in:
1
import java.awt.Color;
That should help you out.
GoodFatsoGamez GoodFatsoGamez

2016/8/8

#
Thank you so much. I was searching online how to do it but couldn't find anything. I knew I needed to import something but I just didn't know what to type. I was searching for about two days so I decided to ask here. Thanks so much.
You need to login to post a reply.