Color Demonstration
|
05-10-2018, 02:32 PM
Post: #1
|
|||
|
|||
Color Demonstration
https://edspi31415.blogspot.com/2018/05/...ation.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:
|
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)