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

Report as inappropriate.

matt.milan
matt.milan presents ...

2012/3/11

Mouse Drawing Colors v3

No description.

2098 views / 14 in the last 7 days

Tags: mouse simulation with-source graphics cabrillo

open in greenfoot
Your browser does not support the canvas tag.
A new version of this scenario was uploaded on Sun Mar 11 17:57:39 UTC 2012 Included duta's improved matfh functions and catch logic. added more fade logic to color particles (fade logic already exists in world method) holding mousebutton increases particle size Edit: forgot to publish source code. sorry for repeated updates
DutaDuta

2012/3/11

Its starting to make good progress! :) I especially like it when you hold down the mouse button while moving it. Here's the more complicated bit: joining the dots.
DutaDuta

2012/3/11

Its starting to make good progress! :) I especially like it when you hold down the mouse button while moving it. Here's the more complicated bit: joining the dots.
matt.milanmatt.milan

2012/3/11

i'm going to change it so that the particle accepts a parameter of shapeSize so that it's size is determined upon creation, not while it's moving, cause they all change when i click. not sure if that's what we want here i'm at a real loss about joining the dots. i thought about changing it from fillOval to drawLine. i also think that the particles have to be able to communicate with eachother somehow.
DutaDuta

2012/3/11

I think adding an extra parameter to the particles which is a reference on the previous particle (previous in a chonological order of creation sense), and then it draws to that particle maybe?
DutaDuta

2012/3/12

I posted an updated version

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

Who likes this?

No votes yet.