public ApplicationSprite()
		{
			s = new Sprite().AttachTo(this);

			g = s.graphics;

			color1 = colors[0];


			addChild(
					new TextField
					{
						text = "powered by jsc",
						x = 20,
						y = 40,
						selectable = false,
						sharpness = -400,
						textColor = 0xffffff,
						mouseEnabled = false
					}
				);


			this.mouseMove +=
				ev =>
				{
					localX = (int)ev.stageX;
					localY = (int)ev.stageY;

					redraw();
				};

			this.click +=
				delegate
				{
					color1 = colors[++colors_index % (colors.Length - 1)];
					redraw();
				};

			var timer = new Timer(1000 / 24, 0);

			timer.timer +=
				delegate
				{
					counter++;

					redraw();
				};

			timer.start();

			redraw();
		}
Ejemplo n.º 2
0
 /// <summary>
 /// Ends the fill.
 /// </summary>
 public void end(Graphics target)
 {
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Starts the fill.
 /// </summary>
 public void begin(Graphics target, Rectangle targetBounds, Point targetOrigin)
 {
 }