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

Set pixel color #45

Closed
EyalAr opened this issue Sep 19, 2014 · 5 comments
Closed

Set pixel color #45

EyalAr opened this issue Sep 19, 2014 · 5 comments
Assignees
Milestone

Comments

@EyalAr
Copy link
Owner

EyalAr commented Sep 19, 2014

No description provided.

@EyalAr EyalAr modified the milestones: v0.0.5, v0.0.6 Sep 29, 2014
@blowsie
Copy link

blowsie commented Nov 26, 2014

get pixel color could also be useful

@EyalAr
Copy link
Owner Author

EyalAr commented Nov 28, 2014

@blowsie indeed. See #44

EyalAr added a commit that referenced this issue Nov 28, 2014
@EyalAr EyalAr mentioned this issue Nov 29, 2014
@EyalAr EyalAr self-assigned this Nov 29, 2014
@EyalAr EyalAr mentioned this issue Nov 29, 2014
@jengel3
Copy link

jengel3 commented Nov 30, 2014

Similarly - Any possibility of being able to set transparency per pixel?

@EyalAr
Copy link
Owner Author

EyalAr commented Nov 30, 2014

@Jake0oo0
Yes, using getPixel and setPixel:

// modify some pixel at coordinates (x, y)
var p = image.getPixel(x, y);
// set alpha channel of pixel to 50%:
p.a = 50;
image.setPixel(x, y, p, function(err, image){ ... });

getPixel and setPixel are already available at the version/0.0.6 branch.
(v0.0.6 will be officially released soon)

@jengel3
Copy link

jengel3 commented Nov 30, 2014

Saw this shortly after making my comment, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants