Update arm.mjs
This commit is contained in:
parent
b94f66a977
commit
eb8ff3ae10
1 changed files with 2 additions and 2 deletions
|
@ -28,9 +28,9 @@ function octoplushyArmSection(
|
||||||
const sections = options.type == 'squid' ? 10 : 8
|
const sections = options.type == 'squid' ? 10 : 8
|
||||||
|
|
||||||
const sectionWidth = (w * 2) / sections
|
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)
|
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) {
|
switch (options.type) {
|
||||||
case 'octopus':
|
case 'octopus':
|
||||||
armLength *= 2
|
armLength *= 2
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue