Jump to content

Problem creating Sierpinski Triangle with Codelab (Solved)


Recommended Posts

Hey, I'm having trouble creating a sierpinski triangle with the codelab plugin. Essentially, whenever I run my piece of code, it does what I want it to, but only on one row. To make a complete triangle, I have to repeat the effect multiple times. I've used a while statement, but it doesn't work.

Edit: Just thought of one possible reason. When I check if the pixels are a certain color, does it take the color which my effect makes them, or their original color? If it's there original color, could someone explain to me how to get around this?

Edit2: Never mind, after looking through the Code Lab help files a bit, I now see where I went wrong. I was checking the source canvas, rather than the destination canvas.

Link to comment
Share on other sites

Do remember to post in the correct section. You have a technical question related to effects development, the Effects API / Programming section would be the most logical place to post.

Moved to Effects API / Programming

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...