Search found 7 matches

by patrick99e99
2016-11-09T15:11:44-07:00
Forum: Users
Topic: How would I create a 1x3 png with three rgb pixels?
Replies: 5
Views: 5435

How would I create a 1x3 png with three rgb pixels?

with the convert utility, how can I create a png image that is:

* 1px in height
* 3px in width
* pixel[0] is red
* pixel[1] is green
* pixel[2] is blue

?
by patrick99e99
2016-11-09T01:17:56-07:00
Forum: Users
Topic: Is it possible to *easily* create a nx1 png palette from an image?
Replies: 8
Views: 4756

Re: Is it possible to *easily* create a nx1 png palette from an image?

So, how do I make that be non-grayscale? I need this 1D palette to be of the colors from the colored image, not the grayscale version.. I tried changing that flag to "-colorspace rgb", but saw no difference.
by patrick99e99
2016-11-09T01:12:36-07:00
Forum: Users
Topic: Is it possible to *easily* create a nx1 png palette from an image?
Replies: 8
Views: 4756

Re: Is it possible to *easily* create a nx1 png palette from an image?

Thank you very much for that code.. I'll try it out. The plan is, in my game, I have a fragment shader program running which will have the grayscale texture as the primary texture, and a 2ndary texture will be the palette, and as the image is drawn, it will be sampling the color from the palette ...
by patrick99e99
2016-11-08T23:32:55-07:00
Forum: Users
Topic: Is it possible to *easily* create a nx1 png palette from an image?
Replies: 8
Views: 4756

Re: Is it possible to *easily* create a nx1 png palette from an image?

Yeah, I just don't know anything about how to programmatically build image files. Can you give me an example of how to build an image from a text file?
by patrick99e99
2016-11-08T22:50:29-07:00
Forum: Users
Topic: Is it possible to *easily* create a nx1 png palette from an image?
Replies: 8
Views: 4756

Re: Is it possible to *easily* create a nx1 png palette from an image?

Sorry for not giving more context... I am making a video game that uses multiple (large) colored textures that are identical to each other except for their color.. So I have a blue, purple, red, green, orange, yellow, white version of all my texture files, which was really driving me crazy because ...
by patrick99e99
2016-11-08T21:06:31-07:00
Forum: Users
Topic: Is it possible to *easily* create a nx1 png palette from an image?
Replies: 8
Views: 4756

Is it possible to *easily* create a nx1 png palette from an image?

I am seeking a way to easily get a 1D palette image that is sorted by intensity (lowest on the left, highest on the right). I am curious if there's a simple way to give imagemagick an input image and it will find all the colors, sort them, and then output a pixel for every color in a long horizontal ...