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

Report as inappropriate.

matt.milan
matt.milan presents ...

2012/3/13

Mouse Drawing Colors v4.1

funct.

clicking mouse changes from red, to green, to blue

bugs:

green and blue do not work.

4192 views / 7 in the last 7 days

3 votes | 0 in the last 7 days

Tags: mouse simulation with-source graphics cabrillo

open in greenfoot
Your browser does not support the canvas tag.
dlannidlanni

2012/3/13

Green and blue work with my mouse.
MorranMorran

2012/3/13

Green and blue seem to work for me, too. They do flash, but that might be what you want. But this has very nice effects, I like it a lot.
matt.milanmatt.milan

2012/3/13

i'm trying to figure out how to make them not flash but i'm making slow progress. i'd like it to change to a solid blue color that fades, or a solid green color that fades. atm, they flash and do not fade, if not red
matt.milanmatt.milan

2012/3/13

edit - i see that they do fade, but not quickly enough
DutaDuta

2012/3/13

@matt.milan the problem is in the way you're fading. I'll upload a working version, one sec (need to write the code :L)
DutaDuta

2012/3/13

http://www.greenfoot.org/scenarios/4567 There you go. I've implemented my v4 color rotation system and various other updates. Also the main problem was that you had something like new Color(r, b, g); as opposed to (r, g, b) so they'd flip constantly
DutaDuta

2012/3/13

Oh and a point to note -> My fading is currently faster, however you can slow it down if need be with ease (just change the 0.95's in fade() to a number between that's between 0.95 and 1 exclusive (1 causes no fading)).
matt.milanmatt.milan

2012/3/13

[quote]Also the main problem was that you had something like new Color(r, b, g); as opposed to (r, g, b) so they'd flip constantly[/quote] !!! it's always something small like this! man, i must have looked at EVERYTHING else. tx for the help!

Want to leave a comment? You must first log in.

Who likes this?

Morran Busch2207 dlanni