1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

js,gg: more work on porting gg to JS backend (#12903)

This commit is contained in:
playX
2021-12-20 16:18:21 +03:00
committed by GitHub
parent f81654e3a7
commit 5f0160bf11
14 changed files with 392 additions and 219 deletions

View File

@@ -232,3 +232,7 @@ const (
pub fn color_from_string(s string) Color {
return gx.string_colors[s]
}
pub fn (c Color) to_css_string() string {
return 'rgb($c.r,$c.g,$c.b)'
}