Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pixel Color Test
#4
(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 Smile

I'll give it a shot anyhow Smile
Reply


Messages In This Thread
Pixel Color Test - by johnno56 - 04-11-2024, 08:27 PM
RE: Pixel Color Test - by 1micha.elok - 04-12-2024, 07:36 AM
RE: Pixel Color Test - by johnno56 - 04-12-2024, 10:54 AM
RE: Pixel Color Test - by Marcus - 04-12-2024, 01:43 PM
RE: Pixel Color Test - by Marcus - 04-14-2024, 10:38 AM
RE: Pixel Color Test - by johnno56 - 04-14-2024, 12:07 PM

Forum Jump:


Users browsing this thread: 3 Guest(s)