Source Code for Me (s-c.me)

Allows you to paste souce code to blogs! Adapted for Twitter! Here is Search Form in case you missed your code.
Tags: CSS, Created At: 10/24/2016 8:26:15 PMViews:

HTML view:
Copy Source | Copy HTML
  1. float dt =  0.01f;
  2. private void onTick(object sender, EventArgs e)
  3. {
  4.     t = t + dt;
  5.     if ((t < -0.3f)||(t > 0.7f))
  6.     {
  7.         dt = -dt;
  8.     }
  9.     x0 = 230 + (float)(100 * Math.Sin(10 * t));
  10.     y0 = 180 - (float)(20 * Math.Sin(30 * t));
  11.     panel1.Invalidate();
  12. }

Based on Manoli.Net's CodeFormatter. Made by Topbot (c) 2008-2017