How does RGB(A) pen work?

if you go to the pen extension, you might find "set pen RGB(A) to ()", I didn't know how it works, so I selected "help", but nothing popped up

RGB stands for Red Green Blue, the three primary colours of light. Each can have a value from 0 to 255:

Here is how you can use the set pen RGB(A) block:


The pen color block was taken from the colors and crayons library.

Anyway, you are probably wondering what that A is. "A" stands for alpha, and it sets the transparency. A is also a value from 0 to 255, with 0 being transparent and 255 being opaque. The "A" is in brackets in the set pen RGB(A) block because it is optional and defaults to 255 (opaque). Here is an example of using the alpha:

untitled script pic (9)
This script results in this drawing:

noice

Welcome to Snap! Forum! Also note that

Not every block has a help screen for it. Some intermediate blocks still need a polished help screen designed by the community.