Skip to main content

OH_Drawing_ShaderEffectCreateRadialGradient

Function OH_Drawing_ShaderEffectCreateRadialGradient 

Source
pub unsafe extern "C" fn OH_Drawing_ShaderEffectCreateRadialGradient(
    centerPt: *const OH_Drawing_Point,
    radius: f32,
    colors: *const u32,
    pos: *const f32,
    size: u32,
    tileMode: OH_Drawing_TileMode,
) -> *mut OH_Drawing_ShaderEffect
Expand description

@brief Creates an OH_Drawing_ShaderEffect that generates a radial gradient given the center and radius.

@syscap SystemCapability.Graphic.Graphic2D.NativeDrawing @param centerPt Indicates the center of the circle for the gradient. @param radius Indicates the radius of the circle for this gradient. @param colors Indicates the colors to be distributed between the two points. @param pos Indicates the relative position of each corresponding color in the colors array. @param size Indicates the number of colors and pos. @param tileMode Indicates the tile mode. @return Returns the pointer to the OH_Drawing_ShaderEffect object created. @since 11 @version 1.0