draw_set_color(ord(string_char_at(a,22))/**10*/) draw_rectangle(22,0,22+1,0+1,false)(note I have 100 lines of similar code) This is so I can create the qr-like image, reading works fine though except for character 22 (the one that I am showing you)
pixel not drawing
Started by faissialoo, Apr 22 2012 07:55 AM
5 replies to this topic
#1
Posted 22 April 2012 - 07:55 AM
I am making a qr code-like system, except with colors, however this line of code seems to not execute:
#2
Posted 22 April 2012 - 04:14 PM
Check that draw_set_color code in debug mode and make sure it's not drawing the same color as the background.
#3
Posted 22 April 2012 - 04:31 PM
10 should be a very dark red, how are you setting the string 'a'?
#4
Posted 22 April 2012 - 06:26 PM
I am setting a through get_string
#5
Posted 22 April 2012 - 06:36 PM
As SenakuJin said, 10 is a *very* dark red, almost indistinguishable from black.
I'm skeptical that this is what you want, which makes you think that it's not working (because you're expecting 10 to be a non-black color, but you can't tell it apart from Black).
Perhaps you could tell us how you want the colors to work - and try to be as specific as possible.
I'm skeptical that this is what you want, which makes you think that it's not working (because you're expecting 10 to be a non-black color, but you can't tell it apart from Black).
Perhaps you could tell us how you want the colors to work - and try to be as specific as possible.
#6
Posted 22 April 2012 - 07:10 PM
The colors are red to black, I use draw_getpixel to read the pixels exact color which coresponds to the charachter, the background is white, which is why I get a fancy y insteated of the charachter
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











