Post Reply 
Color value from GETPIX_P returns unexpected result
02-03-2016, 02:41 PM (This post was last modified: 02-03-2016 03:52 PM by alexgt.)
Post: #8
RE: Color value from GETPIX_P returns unexpected result
(02-02-2016 03:47 PM)Tim Wessman Wrote:  
(02-02-2016 01:25 PM)alexgt Wrote:  I was thinking about using a string, but if I had a 500x150 world I would have to have a string 75000 in length, and accessing rows would suck >.<

Why? 75000chars*2 bytes, will be much smaller then a graphical representation.

my_string:="1234"
mystring(3) --> 3
mystring(3):="4" ->"1244"

That last one will even do direct access to the string - no memory allocations involved - so it should be rather fast too.

I think what I will do is make a list that is the height of the world and store strings in each of those elements Wink

EDIT: I tested it and you can also store values into it, 65 = "A"
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Color value from GETPIX_P returns unexpected result - alexgt - 02-03-2016 02:41 PM



User(s) browsing this thread: 1 Guest(s)