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