1
0
Fork 0

Update arm.mjs

This commit is contained in:
Wouter van Wageningen 2024-09-26 22:28:03 -07:00 committed by GitHub
parent b94f66a977
commit eb8ff3ae10
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -28,9 +28,9 @@ function octoplushyArmSection(
const sections = options.type == 'squid' ? 10 : 8
const sectionWidth = (w * 2) / sections
const armWidth = w * options.armWidth * (1 - options.bottomTopArmRatio) * 3.1415
const armWidth = w * options.armWidth * (1 - options.bottomTopArmRatio) * Math.PI
const armAdjustedWidth = armWidth * (1 - options.bottomTopArmRatio)
let armLength = ((w * 2) / 3.1415) * options.armLength
let armLength = ((w * 2) / Math.PI) * options.armLength
switch (options.type) {
case 'octopus':
armLength *= 2