Color Demonstration - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Software Libraries (/forum-10.html) +--- Forum: HP Prime Software Library (/forum-15.html) +--- Thread: Color Demonstration (/thread-10716.html) |
Color Demonstration - Eddie W. Shore - 05-10-2018 02:32 PM https://edspi31415.blogspot.com/2018/05/hp-prime-pentcolor-demonstration.html Introduction The HP Prime program PENTCOLOR allows the cycler to through colors with the touch of the following buttons: Key [ 1 ]: Red Key [ 2 ]: Green Key [ 3 ]: Blue Each color setting cycles through the values of 0, 64, 128, 192, and 255. Exit the program with the Escape key ( [ Esc ] ). This program allows the user to cycle through different colors using RGB values. I use two subroutines in PENTCOLOR. The first draws the text every time the key is selected, which allows for crisp text. The second is for value calculation. In subroutines on the HP Prime, all variables that are used must be local. Global variables are passed through the subroutine arguments. HP Prime Program: PENTCOLOR Code:
|