Jump to content

Q: Want to return every color within a Grid.


Deviant
 Share

Recommended Posts

  • Developers

Should this be a bug report or a feature request or...?

<{POST_SNAPBACK}>

:) Shouldn't the dim statement read :

Dim $colours[256][3]

3 colors that each can have a value from 0 to 255 ????

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

nope, that would give you 256x3 possible colours, or 768 colours

with 256 possible values of red, 256 possible values of green, and 256 possible values of blue per colour, there are 256x256x256 possible colours, or 16777216 colours, or 16k colours, or 2 to the power of 24, or 24-bit colour...

Edited by Mr.Wizard

I have a catapult. Give me all the money or I will fling an enormous rock at your head.

Link to comment
Share on other sites

If I was going to do it single dimensional then it wouldn't it need to be

dim $colours[16777216]

in which case it also DOIA with the array oversize error

<{POST_SNAPBACK}>

Let me know when you guys figure out something that replies in a decent amount of time. = ))

8 minutes to scan the colors when I only have 30 seconds to do it and other items, isn't fast enough. I need to scan in around 2 seconds or so.

Maybe I need to find another alternative. (grins)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...