Color of a vertex in the map.

This sets the color of the vertex in the map. Colors will be linearly interpolated between vertex points through the map. Color will multiply the "texture" pixels (like GL_MODULATE in OpenGL). The default color of a vertex in a map is white solid (255, 255, 255, 255) which means it will have no affect on modifying the texture pixels.

The color values must be premultiplied (ie. a >= {r, g, b}).

Since 1.22


  • idx - ID of the point, from 0 to 3 (included). -1 can be used to set the color for all points, but it is invalid for get().


  • r - Red (0 - 255)
  • g - Green (0 - 255)
  • b - Blue (0 - 255)
  • a - Alpha (0 - 255)


@property mapping_color {
    get {}
    set {}
    keys {
        idx: int;
    values {
        r: int;
        g: int;
        b: int;
        a: int;

C signature

void efl_gfx_mapping_color_get(const Eo *obj, int idx, int *r, int *g, int *b, int *a);
void efl_gfx_mapping_color_set(Eo *obj, int idx, int r, int g, int b, int a);

Implemented by