LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Changing colours of a 2D picture array elements

Gurus,

 

I am trying to create a visual representation of a maze using an array of 2D picture elements. The idea being is to load in a  2D wave of 1s and 0s and change the colour of the elements in the picture array to construct the maze visually. I cant seem to change the array colour elements. Can anyone help?

 

Thanks,


Paul

"When I read about the horrors of drinking, I gave up reading"
0 Kudos
Message 1 of 12
(3,263 Views)

Try the attached instead.  Because the array is already 0's and 1's you can simply multiply the array by a color and display the results as an array of color boxes.

0 Kudos
Message 2 of 12
(3,248 Views)

Having an array of pictures seems silly. How many colors will the maze have? If you only have two colors, use an array of flat booleans, else use flat colorboxes.

 

can you attach your datafile?

0 Kudos
Message 3 of 12
(3,243 Views)

File attached.

 

I will have 3 colours in total. I am going to write a code for the PC to solve a maze, just want to be able to visual it.

 

Thanks

"When I read about the horrors of drinking, I gave up reading"
0 Kudos
Message 4 of 12
(3,232 Views)

Instead of an array of images, you should just use a simple 2D picture to display everything. That's what I would probably do.

0 Kudos
Message 5 of 12
(3,223 Views)

Here's what I would do.

 

0 Kudos
Message 6 of 12
(3,208 Views)

Thanks guys,

 

Once I am back in front of a PC with labview I will give it a go.

 

"When I read about the horrors of drinking, I gave up reading"
0 Kudos
Message 7 of 12
(3,193 Views)

Looking forward to *MOD-FIXED.vi

 

Spoiler
Spoiler
The one where any path through the maze gets a color?  Oh and optimize for length and / or  number of turns!
Spoiler
 
Spoiler
It's possibly a problem that I know he could do either in his sleep?  And no. I can't!  (In my sleep)   It would take me a while awake as well!

 


"Should be" isn't "Is" -Jay
0 Kudos
Message 8 of 12
(3,116 Views)

Does this satisfy any of your spoilers, Jeff?

0 Kudos
Message 9 of 12
(3,105 Views)

@Zwired1 wrote:

Does this satisfy any of your spoilers, Jeff?


MANY!  (Bows)


"Should be" isn't "Is" -Jay
0 Kudos
Message 10 of 12
(3,100 Views)