mirror of
https://github.com/danbulant/Cosmos
synced 2026-06-11 02:31:22 +00:00
Update Kernel.cs
Test Color.FromName
This commit is contained in:
parent
25639bc279
commit
784eb44774
1 changed files with 3 additions and 0 deletions
|
|
@ -83,6 +83,9 @@ namespace GraphicTest
|
|||
pen.Color = Color.MediumPurple;
|
||||
aCanvas.DrawPolygon(pen, new Point(200, 250), new Point(250, 300), new Point(220, 350), new Point(210, 275));
|
||||
|
||||
/* Color.FromName */
|
||||
aCanvas.Clear(Color.FromName("Navy"));
|
||||
|
||||
/* A LimeGreen rectangle */
|
||||
pen.Color = Color.LimeGreen;
|
||||
aCanvas.DrawRectangle(pen, 450, 300, 80, 60);
|
||||
|
|
|
|||
Loading…
Reference in a new issue