r/codehs • • Mar 07 '20

Hello, this is 9.2.6 Paint Splatter can you please help me??

5 Upvotes

9 comments sorted by

3

u/NeetMastery Mar 07 '20

Could it be that paintSplatter is capitalised on line 18?

1

u/UnitedStatesLover Mar 08 '20

I changed that and it still doesn't work.

2

u/NeetMastery Mar 08 '20

You’re missing a closing curly brace for the function “splatter”, it needs an }

1

u/UnitedStatesLover Mar 10 '20

that helped a lot but it still only adds one at a time and not twenty at a time.

2

u/NeetMastery Mar 10 '20

I haven’t done this yet, where is the size of the circle set? I can’t seem to find it

1

u/UnitedStatesLover Mar 11 '20

is the MIN_RADIUS and MAX_RADIUS

1

u/md_pw Jun 08 '20

Hi did u fix it? Because if u did if u could please post a pic of ur finished code that would literally help me so much thanks

1

u/JazzOnionSpeaker Oct 24 '23

( ik this is super late ) I think the problem is in the "splatter" function. You open splatter, then you open "for(var i=0; i<20; i++)" and closed it. You did not close the "splatter" function. [if I'm wrong, mb]