04-12-2024, 01:43 PM
(04-12-2024, 10:54 AM)johnno56 Wrote: Ah... this is where my confusion kicks in... over the many years of using multiple forms of Basic, the commands for testing a colour at x,y usual produces a single integer value. If memory serves correctly, N6 handled integer values using "pixeli(x,y)"
So, as N7 currently stands, if I want to check the colour of a pixel, I will need to check all R, G, B and A values of pixel(x,y)? or am I still confused... Would it not be simpler to add pixeli() command to N7?
The problem is that n7 has no integer type, all numbers are 64 bit doubles (floating point). A 64 bit double can correctly represent any signed 32 bit integer. But what you need when storing an RGBA value is a 32 bit UNSIGNED integer with a much larger (positive) range. Can a double handle that, or ... does it even matter if it's just used for a pixeli function? I'm not sure. Do we also want to be able to simulate bit operators? Would that work? I'm not sure
I'll give it a shot anyhow