Code Playground Creations

I’m having a little problem with a playground creation. I can get the circles code but i can’t remember how to make the code run… :frowning: :frowning: :frowning: :frowning: :man_shrugging: :man_shrugging: :man_shrugging:


anybody is welcome to post playground creations that their having trouble with… I’m already working on another one.

1 Like

Hey there, use the 'cx' and 'cy' attributes to move the circle into view. For example:

circle.attr('r', 50).attr('fill', 'red').attr('cx', 50).attr('cy', 50);

That should work.

Hope this helps!
Ben

1 Like