buffer.SetPixel(x, y, col);\r
}\r
\r
+ public void pix_raw(int x, int y, Color col)\r
+ {\r
+ buffer.SetPixel(x, y, col);\r
+ }\r
+\r
+ public void pix_direct(int x, int y, Color col)\r
+ {\r
+ buffer.SetPixel(x, y, col);\r
+ }\r
+\r
+ public void pix_direct(int x, int y, double r, double g, double b, double a)\r
+ {\r
+ buffer.SetPixel(x, y, new Color(r,g,b,a));\r
+ }\r
+\r
public void release()\r
{\r
}\r
\r
public void clear(Color col)\r
{\r
- for (int y = 0; y < height; y++)\r
- {\r
- for (int x = 0; x < width; x++)\r
- {\r
- pix(x, y, col);\r
- }\r
- }\r
+ each((x, y) => col);\r
}\r
\r
\r