grapa.frontend.widgets_custom.PhotoImageColorscale
- class grapa.frontend.widgets_custom.PhotoImageColorscale(width=32, height=32, **args)
Bases:
PhotoImageA PhotoImage that can be filled with a Colorscale gradient.
- __init__(width=32, height=32, **args)
Create an image with NAME.
Valid resource names: data, format, file, gamma, height, palette, width.
Methods
__init__([width, height])Create an image with NAME.
fill_colorscale(colorscale)fills the image with a Colorscale gradient
hline(y, color)color in the form [r,g,b]; x scalar
pixel(pos, color)color in the form [r,g,b]; pos in the form (x,y)
vline(x, color)color in the form [r,g,b]; x scalar
- fill_colorscale(colorscale)
fills the image with a Colorscale gradient
- hline(y, color)
color in the form [r,g,b]; x scalar
- pixel(pos, color)
color in the form [r,g,b]; pos in the form (x,y)
- vline(x, color)
color in the form [r,g,b]; x scalar