/AliOS-Things-master/components/py_engine/framework/ |
A D | st7789py.py | 157 def _encode_pixel(color): argument 364 def vline(self, x, y, length, color): argument 376 def hline(self, x, y, length, color): argument 388 def pixel(self, x, y, color): argument 414 def rect(self, x, y, w, h, color): argument 425 self.hline(x, y, w, color) 426 self.vline(x, y, h, color) 443 pixel = _encode_pixel(color) 452 def fill(self, color): argument 488 self.pixel(y0, x0, color) [all …]
|
/AliOS-Things-master/components/littlevgl/src/lv_misc/ |
A D | lv_color.h | 192 return color.full; in lv_color_to1() 194 if((color.ch.red & 0x4) || (color.ch.green & 0x4) || (color.ch.blue & 0x2)) { in lv_color_to1() 201 if((color.ch.red & 0x10) || (color.ch.green & 0x20) || (color.ch.blue & 0x10)) { in lv_color_to1() 204 if((color.ch.red & 0x10) || (color.ch.green_h & 0x20) || (color.ch.blue & 0x10)) { in lv_color_to1() 211 if((color.ch.red & 0x80) || (color.ch.green & 0x80) || (color.ch.blue & 0x80)) { in lv_color_to1() 227 return color.full; in lv_color_to1() 374 return color; in lv_color_to1() 384 return color; in lv_color_to1() 395 return color; in lv_color_to1() 406 return color; in lv_color_to1() [all …]
|
/AliOS-Things-master/components/SDL2/src/video/ |
A D | SDL_fillrect.c | 34 c128.m128_u32[0] = color; \ 35 c128.m128_u32[1] = color; \ 37 c128.m128_u32[3] = color; 42 cccc[0] = color; \ 43 cccc[1] = color; \ 44 cccc[2] = color; \ 45 cccc[3] = color; \ 300 Uint32 color) in SDL_FillRects() argument 361 color |= (color << 8); in SDL_FillRects() 362 color |= (color << 16); in SDL_FillRects() [all …]
|
/AliOS-Things-master/components/littlevgl/src/lv_core/ |
A D | lv_style.c | 84 lv_style_scr.body.border.color = LV_COLOR_BLACK; in lv_style_init() 89 lv_style_scr.body.shadow.color = LV_COLOR_GRAY; in lv_style_init() 94 lv_style_scr.text.color = lv_color_make(0x30, 0x30, 0x30); in lv_style_init() 101 lv_style_scr.image.color = lv_color_make(0x20, 0x20, 0x20); in lv_style_init() 105 lv_style_scr.line.color = lv_color_make(0x20, 0x20, 0x20); in lv_style_init() 175 lv_style_btn_rel.body.shadow.color = LV_COLOR_GRAY; in lv_style_init() 256 res->body.border.color = lv_color_mix(end->body.border.color, start->body.border.color, opa); in lv_style_mix() 257 res->body.shadow.color = lv_color_mix(end->body.shadow.color, start->body.shadow.color, opa); in lv_style_mix() 258 res->text.color = lv_color_mix(end->text.color, start->text.color, opa); in lv_style_mix() 259 res->image.color = lv_color_mix(end->image.color, start->image.color, opa); in lv_style_mix() [all …]
|
/AliOS-Things-master/components/SDL2/src/gfx/ |
A D | SDL_gfxPrimitives.c | 61 Uint32 color; member 104 *p = color; in fastPixelColorNolock() 156 *p = color; in fastPixelColorNolockNoclip() 230 Uint32 color; in fastPixelRGBA() local 258 Uint32 color; in fastPixelRGBANolock() local 310 *pixel = color; in _putPixelAlpha() 530 (color & 0x00ff0000) >> 16, (color & 0x0000ff00) >> 8, alpha); in pixelColor() 569 (color & 0x00ff0000) >> 16, (color & 0x0000ff00) >> 8, alpha); in pixelColorNolock() 877 (color & 0x00ff0000) >> 16, (color & 0x0000ff00) >> 8, alpha); in filledRectAlpha() 997 Uint32 color; in pixelRGBA() local [all …]
|
A D | SDL_gfxPrimitives.h | 71 SDL_GFXPRIMITIVES_SCOPE int pixelColor(SDL_Surface * dst, Sint16 x, Sint16 y, Uint32 color); 76 …FXPRIMITIVES_SCOPE int hlineColor(SDL_Surface * dst, Sint16 x1, Sint16 x2, Sint16 y, Uint32 color); 81 …FXPRIMITIVES_SCOPE int vlineColor(SDL_Surface * dst, Sint16 x, Sint16 y1, Sint16 y2, Uint32 color); 122 Uint8 width, Uint32 color); 128 …XPRIMITIVES_SCOPE int circleColor(SDL_Surface * dst, Sint16 x, Sint16 y, Sint16 rad, Uint32 color); 139 …RIMITIVES_SCOPE int aacircleColor(SDL_Surface * dst, Sint16 x, Sint16 y, Sint16 rad, Uint32 color); 145 …MITIVES_SCOPE int filledCircleColor(SDL_Surface * dst, Sint16 x, Sint16 y, Sint16 r, Uint32 color); 170 Sint16 start, Sint16 end, Uint32 color); 177 Sint16 start, Sint16 end, Uint32 color); 236 …FXPRIMITIVES_SCOPE int characterColor(SDL_Surface * dst, Sint16 x, Sint16 y, char c, Uint32 color); [all …]
|
/AliOS-Things-master/components/littlevgl/src/lv_themes/ |
A D | lv_theme_zen.c | 262 indic.body.border.color = theme.style.slider.bg->body.border.color; in sw_init() 357 today_box.body.border.color = theme.style.panel->body.border.color; in calendar_init() 536 rel.text.color = bg.text.color; in mbox_init() 609 pr.text.color = theme.style.btn.pr->text.color; in list_init() 610 pr.image.color = theme.style.btn.pr->image.color; in list_init() 616 tgl_pr.text.color = theme.style.btn.tgl_pr->text.color; in list_init() 617 tgl_pr.image.color = theme.style.btn.tgl_pr->image.color; in list_init() 620 ina.text.color = theme.style.btn.ina->text.color; in list_init() 621 ina.image.color = theme.style.btn.ina->image.color; in list_init() 813 style->body.shadow.color = lv_color_mix(style->body.shadow.color, LV_COLOR_GREEN, LV_OPA_60); in style_mod_edit() [all …]
|
A D | lv_theme_alien.c | 83 def.body.border.color = LV_COLOR_SILVER; in basic_init() 86 def.body.shadow.color = LV_COLOR_SILVER; in basic_init() 90 def.text.color = lv_color_hex3(0xDDD); in basic_init() 95 def.image.color = lv_color_hex3(0xDDD); in basic_init() 98 def.line.color = lv_color_hex3(0xDDD); in basic_init() 106 bg.body.border.color = lv_color_hex3(0x666); in basic_init() 107 bg.body.shadow.color = LV_COLOR_SILVER; in basic_init() 131 sb.body.border.color = LV_COLOR_SILVER; in basic_init() 494 cb_rel.body.border.color = LV_COLOR_GRAY; in cb_init() 869 style->body.shadow.color = lv_color_mix(style->body.shadow.color, LV_COLOR_GREEN, LV_OPA_60); in style_mod_edit() [all …]
|
A D | lv_theme_nemo.c | 85 def.body.border.color = LV_COLOR_SILVER; in basic_init() 88 def.body.shadow.color = LV_COLOR_SILVER; in basic_init() 92 def.text.color = lv_color_hex3(0xDDD); in basic_init() 97 def.image.color = lv_color_hex3(0xDDD); in basic_init() 100 def.line.color = lv_color_hex3(0xDDD); in basic_init() 108 bg.body.border.color = lv_color_hex3(0x666); in basic_init() 109 bg.body.shadow.color = LV_COLOR_SILVER; in basic_init() 132 sb.body.border.color = LV_COLOR_SILVER; in basic_init() 443 week_box.body.border.color = theme.style.panel->body.border.color; in calendar_init() 842 style->body.shadow.color = lv_color_mix(style->body.shadow.color, LV_COLOR_GREEN, LV_OPA_60); in style_mod_edit() [all …]
|
A D | lv_theme_material.c | 72 panel.body.border.color = lv_color_hex3(0xbbb); in basic_init() 74 panel.body.shadow.color = DEF_SHADOW_COLOR; in basic_init() 119 rel.body.shadow.color = DEF_SHADOW_COLOR; in btn_init() 382 week_box.body.border.color = theme.style.panel->body.border.color; in calendar_init() 821 …style->body.shadow.color = lv_color_mix(style->body.shadow.color, lv_color_hsv_to_rgb(hue2, 90, 70… in style_mod() 823 … style->text.color = lv_color_mix(style->text.color, lv_color_hsv_to_rgb(hue2, 90, 70), LV_OPA_70); in style_mod() 826 style->body.border.color = LV_COLOR_BLACK; in style_mod() 839 style->body.border.color = LV_COLOR_GREEN; in style_mod_edit() 847 …style->body.shadow.color = lv_color_mix(style->body.shadow.color, lv_color_hsv_to_rgb(hue2, 90, 70… in style_mod_edit() 849 … style->text.color = lv_color_mix(style->text.color, lv_color_hsv_to_rgb(hue2, 90, 70), LV_OPA_70); in style_mod_edit() [all …]
|
A D | lv_theme_night.c | 55 bg.text.color = lv_color_hsv_to_rgb(_hue, 5, 95); in basic_init() 111 btn_rel.body.border.color = lv_color_hex3(0x111); in btn_init() 119 btn_rel.body.shadow.color = lv_color_hex3(0x111); in btn_init() 121 btn_rel.text.color = lv_color_hex3(0xeee); in btn_init() 122 btn_rel.image.color = lv_color_hex3(0xeee); in btn_init() 146 btn_ina.text.color = lv_color_hex3(0xaaa); in btn_init() 147 btn_ina.image.color = lv_color_hex3(0xaaa); in btn_init() 290 gauge_bg.text.color = lv_color_hex3(0xddd); in gauge_init() 746 style->body.border.color = LV_COLOR_BLACK; in style_mod() 757 style->body.border.color = LV_COLOR_GREEN; in style_mod_edit() [all …]
|
A D | lv_theme_default.c | 94 label_prim.text.color = lv_color_hex3(0x111); in label_init() 95 label_sec.text.color = lv_color_hex3(0x888); in label_init() 96 label_hint.text.color = lv_color_hex3(0xaaa); in label_init() 131 led.body.shadow.color = led.body.main_color; in led_init() 371 style->body.shadow.color = lv_color_mix(style->body.shadow.color, LV_COLOR_ORANGE, LV_OPA_60); in style_mod() 373 style->text.color = lv_color_mix(style->text.color, LV_COLOR_ORANGE, LV_OPA_70); in style_mod() 376 style->body.border.color = LV_COLOR_BLACK; in style_mod() 387 style->body.border.color = LV_COLOR_GREEN; in style_mod_edit() 394 style->body.shadow.color = lv_color_mix(style->body.shadow.color, LV_COLOR_GREEN, LV_OPA_60); in style_mod_edit() 396 style->text.color = lv_color_mix(style->text.color, LV_COLOR_GREEN, LV_OPA_70); in style_mod_edit() [all …]
|
/AliOS-Things-master/components/SDL2/test/ |
A D | testgl2.c | 113 ctx.glColor3fv(color[0]); in Render() 115 ctx.glColor3fv(color[1]); in Render() 117 ctx.glColor3fv(color[2]); in Render() 119 ctx.glColor3fv(color[3]); in Render() 122 ctx.glColor3fv(color[3]); in Render() 124 ctx.glColor3fv(color[4]); in Render() 126 ctx.glColor3fv(color[7]); in Render() 128 ctx.glColor3fv(color[2]); in Render() 131 ctx.glColor3fv(color[0]); in Render() 133 ctx.glColor3fv(color[5]); in Render() [all …]
|
/AliOS-Things-master/components/SDL2/src/gfx/Docs/html/ |
A D | doxygen.css | 90 color: #3D578C; 96 color: #4665A2; 110 color: #ffffff; 158 color: #ffffff; 186 color: black; 253 color: #008000 257 color: #604020 261 color: #e08000 265 color: #800000 269 color: #806020 [all …]
|
/AliOS-Things-master/documentation/doxygen/style/ |
A D | doxygen-custom.css | 26 color: #355A7B; 138 color: #fff; 151 color: #A0A0A0; 160 color: black; 199 color: #3D678C; 205 color: #4677A2; 378 color: black; 445 color: #008000 584 color: #555; 807 color: white; [all …]
|
/AliOS-Things-master/components/amp/modules/ |
A D | sh1106.js | 81 pixel(x, y, color) { argument 89 if (color == 0) 91 if (color == 1) 93 if (color == 2) 95 if (color == undefined) 99 fill(color) { argument 103 line(x1, y1, x2, y2, color) { argument 151 rect(x, y, w, h, color) { 152 this.line(x, y, x + w, y, color) 153 this.line(x, y, x, y + h, color) [all …]
|
/AliOS-Things-master/components/littlevgl/src/lv_draw/ |
A D | lv_draw_arc.c | 24 …void ver_line(lv_coord_t x, lv_coord_t y, const lv_area_t * mask, lv_coord_t len, lv_color_t color, 26 …void hor_line(lv_coord_t x, lv_coord_t y, const lv_area_t * mask, lv_coord_t len, lv_color_t color, 67 lv_color_t color = style->line.color; in lv_draw_arc() local 77 hor_line(center_x - r_out + 1, center_y, mask, thickness - 1, color, opa); /*Left Middle*/ in lv_draw_arc() 79 hor_line(center_x + r_in, center_y, mask, thickness - 1, color, opa); /*Right Middle*/ in lv_draw_arc() 81 ver_line(center_x, center_y - r_out + 1, mask, thickness - 1, color, opa); /*Top Middle*/ in lv_draw_arc() 83 ver_line(center_x, center_y + r_in, mask, thickness - 1, color, opa); /*Bottom middle*/ in lv_draw_arc() 140 hor_line(center_x + x_start[0], center_y + yi, mask, x_end[0] - x_start[0], color, opa); in lv_draw_arc() 145 hor_line(center_x + x_start[1], center_y - yi, mask, x_end[1] - x_start[1], color, opa); in lv_draw_arc() 246 lv_draw_fill(&area, mask, color, opa); in ver_line() [all …]
|
A D | lv_draw_basic.c | 104 *vdb_px_p = color; in lv_draw_px() 106 *vdb_px_p = lv_color_mix(color, *vdb_px_p, opa); in lv_draw_px() 162 sw_color_fill(vdb->buf_act, vdb_width, &vdb_rel_a, color, opa); in lv_draw_fill() 176 color_array_tmp[i].full = color.full; in lv_draw_fill() 202 color_array_tmp[i].full = color.full; in lv_draw_fill() 220 sw_color_fill(vdb->buf_act, vdb_width, &vdb_rel_a, color, opa); in lv_draw_fill() 234 lv_color_t color, lv_opa_t opa) in lv_draw_letter() argument 341 } else if(vdb_buf_tmp->full != color.full) { in lv_draw_letter() 343 *vdb_buf_tmp = color; in lv_draw_letter() 609 mem[col] = color; in sw_color_fill() [all …]
|
/AliOS-Things-master/solutions/miniapp_agent_demo/miniapp/ |
A D | app.acss | 2 background-color: #F7F7F7; 44 color: #49a9ee; 57 background-color: #49A9EE; 61 background-color: #F04134; 65 background-color: #FFBF00; 69 background-color: #00A854; 85 color: #000; 95 background-color: #ddd;
|
/AliOS-Things-master/components/amp/engine/quickjs_engine/quickjs/examples/ |
A D | test_point.js | 14 constructor(x, y, color) { argument 16 this.color = color; 19 return this.color; 36 assert(pt2.color === 0xffffff);
|
/AliOS-Things-master/components/SDL2/src/render/software/ |
A D | SDL_drawline.c | 31 SDL_DrawLine1(SDL_Surface * dst, int x1, int y1, int x2, int y2, Uint32 color, in SDL_DrawLine1() argument 48 SDL_memset(pixel, color, length); in SDL_DrawLine1() 59 SDL_DrawLine2(SDL_Surface * dst, int x1, int y1, int x2, int y2, Uint32 color, in SDL_DrawLine2() argument 71 SDL_GetRGBA(color, fmt, &_r, &_g, &_b, &_a); in SDL_DrawLine2() 89 SDL_DrawLine4(SDL_Surface * dst, int x1, int y1, int x2, int y2, Uint32 color, in SDL_DrawLine4() argument 101 SDL_GetRGBA(color, fmt, &_r, &_g, &_b, &_a); in SDL_DrawLine4() 122 Uint32 color, SDL_bool draw_end); 161 func(dst, x1, y1, x2, y2, color, SDL_TRUE); in SDL_DrawLine() 167 Uint32 color) in SDL_DrawLines() argument 199 func(dst, x1, y1, x2, y2, color, draw_end); in SDL_DrawLines() [all …]
|
/AliOS-Things-master/components/amp/engine/duktape_engine/addons/hardware/lcd/ |
A D | module_lcd.c | 92 uint32_t color, int8_t new_line) in lcd_draw_str() argument 113 lcd_draw_char(xstart, ystart, *str, size, color); in lcd_draw_str() 121 uint32_t color, uint8_t need_fill) in lcd_draw_rect() argument 128 amp_hal_lcd_draw_point(i, y1, color); in lcd_draw_rect() 129 amp_hal_lcd_draw_point(i, y2, color); in lcd_draw_rect() 132 amp_hal_lcd_draw_point(x1, i, color); in lcd_draw_rect() 133 amp_hal_lcd_draw_point(x2, i, color); in lcd_draw_rect() 203 int color = duk_get_int(ctx, -2); in native_lcd_fill() local 205 lcd_draw_rect(sx, sy, ex, ey, color, is_fill); in native_lcd_fill() 249 int color = duk_get_int(ctx, -4); in native_lcd_show() local [all …]
|
/AliOS-Things-master/components/py_engine/modules/minicv/base/include/ |
A D | IHaasUI.h | 179 virtual int DrawPoint(Point_t *pt, int32_t color) = 0; 204 virtual int DrawLine(Point_t *start, Point_t *end, int32_t color) = 0; 230 int32_t color) = 0; 253 virtual int DrawCircle(Point_t * center, int32_t radius, int32_t color) = 0; 282 virtual void DrawText(char* text, int32_t size, int32_t color, int32_t left,
|
/AliOS-Things-master/components/py_engine/modules/minicv/base/modules/c/include/ |
A D | WrapperIHaasUI.h | 48 int UIDrawPoint(void* instance, Point_t *pt, int32_t color); 49 int UIDrawLine(void* instance, Point_t *start, Point_t *end, int32_t color); 51 int32_t color); 52 int UIDrawCircle(void* instance, Point_t * center, int32_t radius, int32_t color); 53 void UIDrawText(void* instance, char* text, int32_t size, int32_t color, int32_t left,
|
/AliOS-Things-master/components/py_engine/modules/minicv/base/modules/c/src/ |
A D | WrapperIHaasUI.cpp | 158 int UIDrawPoint(void* instance, Point_t *pt, int32_t color) in UIDrawPoint() argument 168 int ret = mIHaasUI->DrawPoint(pt, color); in UIDrawPoint() 175 int UIDrawLine(void* instance, Point_t *start, Point_t *end, int32_t color) in UIDrawLine() argument 185 int ret = mIHaasUI->DrawLine(start, end, color); in UIDrawLine() 193 int32_t color) in UIDrawRectangle() argument 203 int ret = mIHaasUI->DrawRectangle(left, top, right, bottom, color); in UIDrawRectangle() 210 int UIDrawCircle(void* instance, Point_t * center, int32_t radius, int32_t color) in UIDrawCircle() argument 220 int ret = mIHaasUI->DrawCircle(center, radius, color); in UIDrawCircle() 227 void UIDrawText(void* instance, char* text, int32_t size, int32_t color, int32_t left, in UIDrawText() argument 238 mIHaasUI->DrawText(text, size, color, left, top, right, bottom); in UIDrawText()
|