プレイ日記
MathPRG MathProgrammer
I was kind of bored and made a spiral generating program! It includes variables to customize the quality, size, spacing between additional lines, speed of rotation, and max radius.
8そうだね
プレイ済み
返信[1]
親投稿
Aaron Krondelo
How exactly do you compute a spiral mathematically? Is it an algorithm?
0そうだね
プレイ済み
返信[2]
親投稿
EvilJaxton jaxcool000
Noice.
0そうだね
未プレイ
返信[3]
親投稿
MathPRG MathProgrammer
I give it a FOR loop which sets the 'angle' bounds, then using the sine and cosine of that angle, as well as the increasing value of the angle itself, make it spin around the center while pushing the pixels further away as it goes. Basically that creates this effect. Usually 2880 is the max radius as it covers most of the screen at a size of 1.
2そうだね
プレイ済み