SubVi that is responsible for this is shown in the image below. I did this by simply iterating over both ramps and combining their values. After that, we need to create two 2D array with the same size as the display indicator with delta for every color box. We need to create a ramp that will go from 0 to 30, then back to 0 in 30 steps (horizontal ramp), and the second ramp from 0 to 25 to 0 in 20 steps. So, if we have difference in the value of 55 between corner and middle color box, we can agree that we want the value of 30 to be horizontal difference and 25 vertical. This includes the indexing array VI above, concatenate string, Case statement and probably other LabVIEW VI's. If we notice that that difference to colors is about 55 for red, green and blue value, we can programmatically control our display background in order to achieve this effect. It’s just important to get RGB (Red, Green, Blue) value for these colors. For that, I used the original game’s image and a program called Inkscape, but you can do this in multiple different ways. I wanted that as well, so the first order of things is to figure out the color in the corners of the display and then in the middle. And we could stop there, but as you probably noticed there is a slight transition in color from boxes at the edge of the display to the middle.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |