SHOW:
|
|
- or go back to the newest paste.
1 | void ColorTest() { | |
2 | { | |
3 | Circle().SetFillColor(Rgb(1, 2, 3)).Render(cout); | |
4 | cout << "endl"; | |
5 | } { | |
6 | Circle().SetFillColor(Rgba(1, 2, 3, 0.5)).Render(cout); | |
7 | cout << "endl"; | |
8 | } { | |
9 | Circle().SetFillColor("black").Render(cout); | |
10 | cout << "endl"; | |
11 | } { | |
12 | Circle().SetFillColor("be").Render(cout); | |
13 | cout << "endl"; | |
14 | } { | |
15 | Circle().SetFillColor(NoneColor).Render(cout); | |
16 | } | |
17 | - | } |
17 | + | } |
18 | ||
19 | <circle cx="0" cy="0" r="1" fill="rgb(1,2,3)"/> | |
20 | endl<circle cx="0" cy="0" r="1" fill="rgb(1,2,3,0.5)"/> | |
21 | endl<circle cx="0" cy="0" r="1" fill="black"/> | |
22 | endl<circle cx="0" cy="0" r="1" fill="be"/> | |
23 | endl<circle cx="0" cy="0" r="1" fill="none"/> |