RGBA input to custom block

Can i make a custom block with an rgba input

Yes, if you edit the XML.

Not sure quite what you're asking. "An rgba input" just means a list of four numbers. If you want to use that list to set the pen color, you use it as input to untitled script pic (2).

no i want the color selector

You'll be able to, in 10. Just wait until then.


Snap! version 10, coming (we plan on) this summer. Or in the current dev version https://snap.berkeley.edu/versions/dev/snap.html

k thx

I found a way to do it!

  1. Open file menu and click "Libraries"
  2. Import the "Colors and Crayons" library
  3. Edit the color (one with the colour input) block!


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.