Просмотр исходного кода

Add 'people in crowd' area units

These let you see how many people are in that area,
for a few different crowd densities.
master
Fen Dweller 4 лет назад
Родитель
Сommit
af2f1b0f35
2 измененных файлов: 29 добавлений и 1 удалений
  1. +20
    -0
      macrovision.js
  2. +9
    -1
      presets/characters.js

+ 20
- 0
macrovision.js Просмотреть файл

@@ -173,6 +173,16 @@ math.createUnit("footballFields", {
prefixes: "long"
});

math.createUnit("peopleInLooseCrowd", {
definition: "1 m^2"
})
math.createUnit("peopleInCrowd", {
definition: "0.3333333333333333 m^2"
})
math.createUnit("peopleInDenseCrowd", {
definition: "0.2 m^2"
})

math.createUnit("people", {
definition: "75 liters",
prefixes: "long"
@@ -387,6 +397,9 @@ const unitChoices = {
"miles^2"
],
"relative": [
"peopleInLooseCrowd",
"peopleInCrowd",
"peopleInDenseCrowd",
"footballFields"
],
"quirky": [
@@ -2597,6 +2610,13 @@ const backgroundColors = {
"light": "#555"
}

const settingsCategories = {
"background": "Background",
"controls": "Controls",
"info": "Info",
"visuals": "Visuals"
}

const settingsData = {
"show-vertical-scale": {
name: "Vertical Scale",


+ 9
- 1
presets/characters.js Просмотреть файл

@@ -35274,7 +35274,15 @@ characterMakers.push(() => makeCharacter(
extra: 1400/711,
bottom: 126/1526
},
form: "meowberus"
form: "meowberus",
extraAttributes: {
"pawArea": {
name: "Paw Size",
power: 2,
type: "area",
base: math.unit(35, "m^2")
}
}
},
},
[


Загрузка…
Отмена
Сохранить