> 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

![](https://2169521322-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2Fpakronics-education%2F-Lpg0r0jyU3XQdgAmqp8%2F-Lpg6FkyzLccDdqNXHvg%2F0.png?generation=1569476906512525\&alt=media)

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

![](https://2169521322-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2Fpakronics-education%2F-Lpg0r0jyU3XQdgAmqp8%2F-Lpg6FkznBDusC6LSWtX%2F1.gif?generation=1569476906661212\&alt=media)

2\. Add a Lighting block show ()

![](https://2169521322-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2Fpakronics-education%2F-Lpg0r0jyU3XQdgAmqp8%2F-Lpg6Fl-jjc-AYM156o6%2F2.gif?generation=1569476906578091\&alt=media)

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