> For the complete documentation index, see [llms.txt](https://learn.pakronics.com.au/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://learn.pakronics.com.au/halocode-1/code-with-mu-a-simple-python-editor/examples/basic-project/rainbow-button.md).

# Rainbow Button

![](/files/-Lpg6FkyzLccDdqNXHvg)

1\. Drag an Events block when button is pressed to the Scripts area

![](/files/-Lpg6FkznBDusC6LSWtX)

2\. Add a Lighting block show ()

![](/files/-Lpg6Fl-jjc-AYM156o6)

3\. Press the button of HaloCode, and see what happens!
