Omnimaga

Calculator Community => TI Calculators => Axe => Topic started by: leafy on March 07, 2011, 01:18:41 am

Title: Gear Algorithm
Post by: leafy on March 07, 2011, 01:18:41 am
Can somebody help me to come up with an algorithm that can draw a convincing gear/sawblade thing that spans the entire width of the screen and rotates as it moves downwards? I have a great idea for my project but didnt have much luck figuring this out :(
Thanks in advance.
Title: Re: Gear Algorithm
Post by: z80man on March 07, 2011, 01:28:23 am
Entire width of the screen? Could you explain a little more on how this is supposed to work. My best idea because rotating is heavily proc intensive is to just use several sprites for each stage of the rotation.
Title: Re: Gear Algorithm
Post by: AngelFish on March 07, 2011, 01:36:43 am
Well, the screen isn't square, so you'd have to apply a some vector transformations, which wouldn't be fast for the number of lines presumably necessary. But you could be the gear out of sprites by having each tooth as a sprite and rotating those.