Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify the difference between rectangle and point addressing #24

Closed
belak opened this issue Nov 2, 2017 · 1 comment
Closed

Clarify the difference between rectangle and point addressing #24

belak opened this issue Nov 2, 2017 · 1 comment
Assignees
Labels

Comments

@belak
Copy link

belak commented Nov 2, 2017

As an example, I was using the following to experiment with setting a block of pixels, but it didn't seem to do anything:

A[exp] <= start, loops:1, pfunc:interp;
A[exp, 1] <= P[c:0%,r:0%](255, 0, 255), P[c:20%,r:20%](255, 0, 255);

CC @haata (Since it doesn't look like I can directly assign issues)

@haata haata self-assigned this Feb 20, 2019
@haata haata added the question label Feb 20, 2019
@haata
Copy link
Member

haata commented Feb 20, 2019

Sorry this has taken so long.
But
[] brackets handle addressing, i.e. which pixel or where the pixel is located.
() represent the data manipulation on that pixel. So if a pixel has 3 channels, (255, 0, 255) would modify each of the 3 channels of the pixel with 255 on channel 1, 0 on channel 2 and 255 on channel 3. The usual mapping is channel 1 is Red, channel 2 is Green and channel 3 is Blue.
Now for single color leds, only channel 1 is used.

@haata haata closed this as completed Feb 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants