I think you had a slight issue with the syntax for specifying the optional 
values. You want this:

        oiotool -pattern fill:color=0.2,0.3,0.4 128x128 3 -o tmp.exr

Also valid is to create an empty image, then execute the fill command on its 
full extent:

        oiiotool -create 128x128 3 -fill:color=0.2,0.3,0.4 128x128+0+0 -o 
tmp.exr


The fill pattern is lets you also do horizontal, vertical, or 4-corner color 
gradients as well:
        oiiotool -pattern fill:left=0.2,0.3,0.4:right=1,0,0 128x128 3 -o tmp.exr
        oiiotool -pattern fill:top=0.2,0.3,0.4:bottom=1,0,0 128x128 3 -o tmp.exr
        oiiotool -pattern 
fill:topleft=1,0,0:topright=0,1,0:bottomleft=0,0,1:bottomright=0,1,1 128x128 3 
-o tmp.exr


> On Jun 2, 2016, at 12:30 PM, Andrea Solis <[email protected]> wrote:
> 
> Hi,
> I'm trying to create an image filled with a specified color.  I'm able to 
> successfully create a black image usiing this command:
>     oiiotool --pattern fill 128x128 3 -o /tmp/test.exr
> 
> But I can't figure out the syntax for specifying a fill color.  I've tried 
> this:
> 
>     oiiotool --pattern fill=1.0,0,0 128x128 3 -o /tmp/test.exr
> 
> It doesn't work, the resulting image is still black.  Anything else I've 
> tried results in a syntax error.
> 
> Is this a bug or am I formatting the command incorrectly?  I'm using 
> openimageio version 1.6.13
> 
> Thanks,
> Andrea
> 
> 
> 
> _______________________________________________
> Oiio-dev mailing list
> [email protected]
> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

--
Larry Gritz
[email protected]


_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to