Microsoft MakeCode

Presenting Random Lines with Slider

Use right/left arrows to change slider, which is the number of lines. Use up/down arrows to select a single color. Button A changes to random colors. Button B changes background color.

Program illustrates use of slider UI element.

More info at https://wecodemakecode.com/2019/11/20/code-for-random-lines-in-makecode-arcade/

3 Likes