Microsoft Small Basic
RSS

Navigation





Quick Search
»
Advanced Search »

PoweredBy

Spiral sample

RSS
Modified on 2008/12/24 15:58 by 209.234.147.4 Categorized as Uncategorized
'Spiral   
  
Radius = 200   
RadiusStep = .2   
  
Angle = 0   
x1 = 320 + Math.Sin(Angle) * Radius   
y1 = 220 + Math.Cos(Angle) * Radius   
While Radius > 0   
  
  x = 320 + Math.Sin(Angle) * Radius   
  y = 220 + Math.Cos(Angle) * Radius      
  Angle = Angle + .1   
  GraphicsWindow.DrawLine(x,y,x1,y1)   
     
  x1 = x   
  y1 = y   
     
  Radius = Radius - RadiusStep   
  RadiusStep = RadiusStep - .0001   
     
EndWhile  

SpiralImage

SpiralImage


ScrewTurn Wiki version 3.0.5.600. Some of the icons created by FamFamFam.