If the offset is 0.9 in a radial gradient, the gradient will Only occur near p2 (before that everything is of color col1) Is 0.9 in a gradient going from p1 to p2, then the gradient will Real number between 0 and 1 indicating the fraction of the vectorĪt which the gradient actually starts. In a circular gradient it goes from col1 to col2 in all In a bilinear gradient it also varies symetrically form p1 In a linear gradient the color varies in one direction, col1, col2Įither floats between 0 and 1 (for gradients used in masks) Gradually changes in the direction of p2 until it is col2Ī vector in pixels that can be provided instead of p2. p1, p2Ĭoordinates (x,y) in pixels of the limit point for col1Īnd col2. Size (width, height) in pixels of the final picture/array. If it is a RGB picture the result must be transformed intoĪ ‘uint8’ array to be displayed normally: Parameters size Gradually from color col1 in position p1 to color col2 The result is a picture of size size, whose color varies color_gradient ( size, p1, p2=None, vector=None, r=None, col1=0, col2=1.0, shape='linear', offset=0 ) ¶ĭraw a linear, bilinear, or radial gradient. With a radius radius but slightly blurred on the border by blur On a screen of size screensize at the position center=(x,y), circle ( screensize, center, radius, col1=1.0, col2=0, blur=1 ) ¶ĭraws a circle of color col1, on a background of color col2, (2D float arrays) then ismask must be True. blit ( im1, im2, pos=None, mask=None, ismask=False ) ¶īlits im1 on im2 as position pos=(x,y), using the Methods that are difficult to do with the existing Python libraries. This module deals with making images (np arrays).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |