瀏覽代碼

Add Kuro-shi Uchū. Allow alt-dragging to go outside of the world bounds

tags/v0.1.0
Fen Dweller 5 年之前
父節點
當前提交
5c3e7a93a7
共有 4 個文件被更改,包括 250 次插入2 次删除
  1. +28
    -2
      macrovision.js
  2. +20
    -0
      media/attribution.js
  3. +161
    -0
      media/characters/kuro-shi-uchū/front.svg
  4. +41
    -0
      presets/characters.js

+ 28
- 2
macrovision.js 查看文件

@@ -63,6 +63,9 @@ const entities = {
}

function constrainRel(coords) {
if (altHeld) {
return coords;
}
return {
x: Math.min(Math.max(coords.x, 0), 1),
y: Math.min(Math.max(coords.y, 0), 1)
@@ -909,7 +912,7 @@ document.addEventListener("DOMContentLoaded", () => {
scenes["Demo"]();
else {
try {
const data = JSON.parse(atob(param));
const data = JSON.parse(b64DecodeUnicode(param));
if (data.entities === undefined) {
return;
}
@@ -1324,11 +1327,34 @@ function exportScene() {
return results;
}

// btoa doesn't like anything that isn't ASCII
// great

// thanks to https://stackoverflow.com/questions/30106476/using-javascripts-atob-to-decode-base64-doesnt-properly-decode-utf-8-strings
// for providing an alternative

function b64EncodeUnicode(str) {
// first we use encodeURIComponent to get percent-encoded UTF-8,
// then we convert the percent encodings into raw bytes which
// can be fed into btoa.
return btoa(encodeURIComponent(str).replace(/%([0-9A-F]{2})/g,
function toSolidBytes(match, p1) {
return String.fromCharCode('0x' + p1);
}));
}

function b64DecodeUnicode(str) {
// Going backwards: from bytestream, to percent-encoding, to original string.
return decodeURIComponent(atob(str).split('').map(function(c) {
return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
}).join(''));
}

function linkScene() {
loc = new URL(window.location);


window.location = loc.protocol + "//" + loc.host + loc.pathname + "?scene=" + btoa(JSON.stringify(exportScene()));
window.location = loc.protocol + "//" + loc.host + loc.pathname + "?scene=" + b64EncodeUnicode(JSON.stringify(exportScene()));
}
function copyScene() {
const results = exportScene();


+ 20
- 0
media/attribution.js 查看文件

@@ -1748,6 +1748,18 @@ const attributionData = {
"bossvoss"
]
},
{
prefix: "./media/characters/kuro-shi-uchū/",
files: [
{ name: "front.svg", source: "https://media.discordapp.net/attachments/300130710671458304/682667452626239526/lugiablackholeactual2.png" },
],
authors: [
"shinywark"
],
owners: [
"dragonshark"
]
},
{
prefix: "./media/characters/lexi/",
files: [
@@ -3365,6 +3377,14 @@ const attributionData = {
"name": "Mariokartsonicriders",
"url": "https://www.furaffinity.net/user/mariokartsonicriders/",
},
"shinywark": {
"name": "ShinyWark",
"url": "https://twitter.com/ShinyWark",
},
"dragonshark": {
"name": "DragonShark",
"url": "https://twitter.com/ReptileGamepley",
},
}
}



+ 161
- 0
media/characters/kuro-shi-uchū/front.svg 查看文件

@@ -0,0 +1,161 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 24.0.2, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 3688.26 2389.16" style="enable-background:new 0 0 3688.26 2389.16;" xml:space="preserve">
<style type="text/css">
.st0{fill:#1A1A1A;}
</style>
<g>
<path d="M157.39,756.25c5.99,1.03,8.83,4.57,11.26,8.71c8.96,15.22,17.03,30.88,23.88,47.16c5.61,13.33,13.8,25.05,22.48,36.44
c8.55,11.22,20.54,17.85,33.39,22.79c8.36,3.21,17.06,5.52,25.63,8.17c2.25,0.7,4.57,0.93,7.4-0.36c1.8-4.55,2.46-9.78,2.54-14.99
c0.27-17.95-1.55-35.78-2.93-53.66c-1.54-20.02-0.49-39.94,6.91-59.01c0.12-0.31,0.2-0.64,0.33-0.94
c6.84-16.39,15.44-25.52,39.23-26.38c12.65-0.46,25.22-0.27,37.5,3.86c8.6,2.89,16.5,7.06,24.35,11.42
c10.46,5.82,20.81,11.84,31.35,17.51c20.38,10.96,38.58,24.71,54.8,41.23c7.68,7.82,15.9,15.12,24.14,22.36
c4.85,4.27,7.81,9.82,11.57,15.41c9.94-0.52,19.63-2.94,29.34-4.9c12.06-2.43,23.91-5.8,35.33-10.49
c18.44-7.56,37.51-13.42,55.72-21.64c14.14-6.38,26.8-14.9,38.45-24.79c17.28-14.66,32.92-31.05,47.01-48.85
c2.25-2.84,4.73-5.61,5.6-9.95c-5.81-9.41-9.13-20.22-9.84-31.55c-0.8-12.62-1.44-25.35-0.65-37.94
c1.41-22.17,2.89-44.44,7.94-66.16c3.84-16.49,7.45-33.12,15.05-48.47c0.44-0.89,0.59-1.94,1.09-2.78
c4.97-8.36,3.4-16.2-0.91-24.44c-7.35-14.07-10.82-29.22-10.73-45.16c0.09-14.96,0.06-29.9,1.32-44.85
c1.62-19.19,7.18-37.08,15.58-54.27c11.28-23.08,24.76-44.85,39.37-65.94c2.12-3.05,3.67-5.99,3.88-9.95
c0.34-6.45,1.67-7.5,7.88-7.61c5.32-0.09,10.68-0.12,15.95,0.45c5.13,0.56,10.22,1.71,14.84,3.85c1.59-2.79,0.2-4.44-0.66-6.17
c-8.61-17.52-13.71-36.35-15.63-55.45c-2.5-24.9-0.48-49.78,8.16-73.82c7.84-21.78,18.32-41.87,32.1-60.58
c15.68-21.3,32.65-41.17,53.33-57.74c1.81-1.45,3.58-3.02,5.57-4.17c4.48-2.6,7.65-6.05,9.48-11.04c1.12-3.06,3.17-5.85,5.15-8.5
c2.62-3.5,6.06-4.03,9.48-1.45c2.63,1.99,5.19,4.21,7.32,6.72c16.75,19.8,33.87,39.31,46.65,62.11c5.4,9.64,13.62,17.17,20.38,25.8
c14.15,18.06,28.32,36.14,45.25,51.8c25.87,23.93,50.89,48.86,79.21,69.98c24.56,18.32,47.69,38.32,71.16,57.94
c25.03,20.92,51.24,40.31,77.46,59.69c28.63,21.18,57.35,42.27,87.27,61.57c18.52,11.95,35.66,25.68,52.86,39.24
c14.8,11.67,29.58,23.77,41.07,39.14c2.58,3.44,5.83,6.4,8.88,9.46c10.31,10.34,16.03,23.55,22.71,36.16
c4.79,9.04,4.97,18.48,2.47,28.13c-4.94,19.06-12.33,37.25-20.65,55c-11.72,25.01-23.65,49.94-36.27,74.5
c-13.53,26.34-27.95,52.23-40.78,78.93c-7.49,15.6-14.41,31.48-23.59,46.2c-8.44,13.55-16.98,27.04-25.65,40.45
c-5.42,8.37-9.68,17.49-15.1,25.72c-6.49,9.85-9.06,19.82-10.02,31.41c-1.91,23.26-8.86,45.58-16.33,67.64
c-3.09,9.12-4.71,18.66-8.16,27.71c-1.82,4.79-0.26,9.85,0.84,14.75c6.63,29.5,12.77,59.09,17.16,89.02
c1.2,8.16,1.88,16.45,4.51,24.72c5.57-0.47,10.37-2.83,15.35-4.43c6.64-2.13,13.05-5.15,19.8-6.78
c14.63-3.54,26.88-11.3,38.46-20.37c16.29-12.77,33.92-23.45,51.61-34.09c8.55-5.14,16.64-11.03,25.07-16.38
c10.11-6.42,20.51-12.33,31.21-17.76c21.36-10.84,42.48-22.15,63.68-33.3c25.42-13.37,52.09-23.46,80.01-30.04
c12.94-3.05,26-6.03,39.18-7.47c23.09-2.53,45.86-1,67.23,9.71c7.4,3.71,15.14,6.77,22.75,10.14c4.94-1.62,8.87-4.8,13.06-7.42
c11.32-7.05,22.87-13.65,35.23-18.7c19.38-7.92,35.88-20.1,51.15-34.14c17.89-16.44,31.1-36.39,41.92-57.89
c6.48-12.87,10.23-26.73,9.66-41.38c-0.31-8.01-1.72-15.62-6.39-22.63c-5.46-8.2-6.74-18-8.09-27.54c-0.69-4.9-1.39-9.71-2.76-14.1
c-2.87-1.15-4.14,0.8-5.82,1.72c-9.44,5.17-19.57,8.75-30.24,9.36c-10.91,0.63-18.45,5.42-24.99,13.91
c-7.38,9.58-14.18,19.06-16.74,31.26c-1.54,7.3-1.55,14.5-1.51,21.8c0.02,3.49,1.77,6.4,3.5,9.21c3.66,5.95,7.45,11.82,12.46,16.79
c4.34,4.31,6.61,9.68,8.74,15.39c2.63,7.05-0.95,11.42-4.82,16.04c-1.7,2.03-4.19,1.81-6.51,1.74c-9.68-0.29-18.33-4.06-25.7-9.77
c-19.43-15.03-31.52-34.66-35.79-59.15c-2.93-16.81-3.7-33.67-3.26-50.65c0.5-19.01,5.94-36.57,16.08-52.65
c1.78-2.82,3.4-5.61,4.07-9c2.49-12.53,2.26-25.06,0.98-38.22c-5.65,0.43-7.76-3.31-9.34-7.42c-1.88-4.9-3.51-9.89-5.42-15.32
c-4.09,1.38-4.08,6.49-8.15,7.58c-2.42-0.3-3.17-2.82-4.17-4.72c-1.69-3.22-3.46-6.6-4.13-10.12
c-2.54-13.34-8.43-24.81-16.55-35.72c-5.87-7.89-10.29-17.03-12.79-26.83c-1.78-6.97-1.63-13.8,0.64-20.65
c4.45-13.45,11.55-25.4,20.53-36.25c3.2-3.86,7.15-6.93,11.49-9.51c21.26-12.68,43.38-23.13,67.84-28.32
c9.53-2.02,19.14-2.67,28.68-3c21.95-0.74,43.87,0.31,65.76,2.65c13.86,1.48,27.81,2.22,41.64,4.18
c9.26,1.31,18.31,3.44,27.26,6.11c41.58,12.46,81.37,29.08,118.88,50.98c17.56,10.26,34.12,22.01,50.02,34.68
c20.17,16.07,37.13,35.19,52.8,55.57c11.38,14.79,22.55,29.69,30.48,46.72c0.81,1.74,2.1,3.35,1.73,6.22
c-10.61-2.93-19.15-10.23-30.04-13.82c-1.61,6.42-0.02,12.15,0.34,17.9c0.77,12.25,2.04,24.55-1.77,36.92
c-3.26-1.12-3.8-4.36-5.38-6.63c-12.7-18.3-22.25-38.59-35.77-56.4c-4.15-5.47-8.9-9.47-15.26-12.24
c-16.52-7.2-33.25-13.6-51.09-16.54c-13.55-2.24-27.2-1.84-40.82-0.56c-2.32,0.22-4.67,0.38-6.57,2.79
c1.75,6.21,5.29,11.8,8.58,17.47c16.92,29.2,29.75,60.15,39.53,92.41c1.56,5.14,4.1,9.7,6.87,14.29
c8.57,14.23,18.95,27.44,25.8,42.63c11.31,25.06,18.71,51.17,18.5,79c-0.07,10,0.13,20-0.05,30c-0.23,13.27,1.3,26.62-2.02,39.19
c2.05,3.62,4.9,4.42,8.01,4.17c4.48-0.37,8.58,1.01,12.64,2.49c9.36,3.4,18.97,6.17,27.91,10.68c3.58,1.81,7.29,2.43,11.5,2.18
c13.03-0.77,25.89,0.68,38.52,4.22c9.93,2.78,20.05,4.87,29.91,7.84c17.07,5.14,32.59,13.16,45.84,25.41
c4.5,4.16,8.26,8.63,10.88,14.07c6.63,13.79,13.01,27.7,19.79,41.41c5.63,11.4,8.62,23.71,13.02,35.53
c4.3,11.52,8.32,23.14,12.59,34.66c0.55,1.48,1.97,2.61,2.79,4.02c3.69,6.32,7.06,12.71,9.36,19.77
c5.58,17.1,13.68,33.2,21.1,49.53c11.03,24.24,23.33,47.84,35.79,71.38c10.27,19.4,20.22,38.96,31.62,57.73
c19.16,31.57,38.26,63.19,62.88,91c4.66,5.26,8.64,11.31,10.78,17.82c4.76,14.52,14.57,25.15,24.79,35.68
c20.87,21.51,43.6,40.99,65.94,60.93c33.39,29.8,70.31,54.71,106.85,80.28c29.2,20.44,58.97,39.98,89.19,58.81
c36.43,22.69,73.62,44.13,111.97,63.48c4.16,2.1,8.38,4.11,12.72,5.78c25.3,9.7,47.94,24.51,71.68,37.2
c9.09,4.86,17.99,10.09,26.94,15.22c3.5,2.01,7.12,3.83,11.18,3.82c9.04-0.01,17.81,2.12,26.72,3.09
c8.14,0.89,15.09,4.86,21.99,8.97c10.28,6.13,20.35,12.78,31.15,17.82c9.55,4.45,19.6,7.99,30.13,10.1
c25.11,5.01,50,11.23,75.2,15.64c24.53,4.29,49.1,8.56,73.91,11.23c44.38,4.77,88.85,7.1,133.48,6.17
c17.33-0.36,34.5,1.63,51.69,3.55c17.82,1.99,35.67,3.76,53.51,5.59c9.97,1.03,19.73,2.67,28.69,7.6
c7.69,4.23,9.77,14.38,3.93,20.82c-2.02,2.23-4.08,4.06-4.1,7.55c-0.09,13.06-6.4,24.19-11.63,35.62c-1.23,2.7-2.98,5.16-4.38,7.53
c0.21,1.97,1.68,2.39,2.81,2.49c11.67,1.04,22.7,5.15,34.18,7.08c1.95,0.33,3.86,0.97,5.76,1.58c14.58,4.65,17.41,8.86,16.69,23.82
c-0.22,4.68-2.04,8.36-5.41,11.32c-1.71,1.51-3.79,2.6-5.05,3.44c-6.21,25.2-16.04,47.72-32.56,67.12
c2.56,2.15,6.12,1.97,9.62,1.98c6.33,0.01,12.67,0,19,0.01c12.15,0.03,23.69,2.61,34.71,7.85c4.14,1.96,6.28,4.66,6.29,9.15
c0,6.34,0.29,12.84-3.64,18.27c-6.8,9.38-11.44,20.01-17.51,29.81c-4.81,7.77-10.64,14.58-18.17,19.63
c-9.43,6.32-17.99,13.68-26.67,20.91c-5.98,4.98-12.71,8.27-19.97,10.96c-15.71,5.83-31.95,9.26-48.49,11.31
c-16.58,2.05-33.3,1.36-49.91,0.59c-10.94-0.51-21.92,0.19-32.86-1.5c-10.83-1.67-21.76-2.74-32.57-4.67
c-7.27-1.3-13.88-4.48-20.86-6.6c-33.7-10.27-67.14-21.37-100.04-33.99c-20.59-7.9-41.87-13.06-63.61-16.51
c-1.64-0.26-3.31-0.31-4.98-0.33c-24.64-0.3-49.28-0.46-73.92-0.93c-10.84-0.21-20.93,3.65-31.46,5.04c-1.4,0.18-2.2,1.27-3.23,2.1
c-7.26,5.86-15.12,10.61-23.8,14.25c-17.17,7.19-34.15,14.86-51.85,20.74c-29.72,9.87-59.77,18.07-91.16,20.9
c-19.56,1.77-39.1,4.09-58.73,2.89c-19.22-1.18-38.55-1.18-57.63-4.36c-2.94-0.49-5.94-0.8-8.92-0.85
c-11.43-0.17-22.29-3.53-33.35-5.81c-14.34-2.95-29.05-4.77-42.91-9.22c-17.38-5.58-35.08-10.31-51.98-17.4
c-8.89-3.73-18.01-6.89-26.97-10.46c-12.47-4.98-23.49-12.54-34.28-20.3c-9.7-6.98-19.27-14.21-27.83-22.65
c-4.34-4.28-9.89-6.21-15.86-8.63c0.49,6.36,1.24,11.85,2.88,17.18c4.04,13.1,5.44,26.59,6.5,40.18
c0.93,12.05,3.81,23.93,10.27,34.07c4.68,7.35,10.66,14.48,19.85,17.27c11.39,3.46,22.26,8.25,34.07,10.76
c17.47,3.71,28.62,16.1,36.74,31.37c5.66,10.64,7.92,22.54,12.16,33.72c2.91,7.67-0.15,12.83-7.86,15.63
c-4.05,1.47-8.4,1.97-12.6,2.91c-16.34,3.65-32.81,4.71-49.53,4.95c-15.3,0.22-30.62,0.37-45.93,0.72
c-5.62,0.13-11.21,1.61-16.83,1.81c-26.91,0.96-53.71,3.63-80.65,4.45c-23.99,0.73-47.84-0.71-71.73-1.38
c-11.92-0.34-23.77-2.41-35.72-3.26c-13.35-0.95-26.59-0.47-39.87,0.53c-6.29,0.47-12.57,1.05-18.85,1.66
c-18.55,1.82-37.08,2.84-55.66,0.19c-2.94-0.42-5.99-0.08-8.99-0.1c-4.11-0.02-7.87-1.3-11.36-3.37c-2.46-1.47-3.38-3.33-3.02-6.59
c1.74-15.53,7.65-29.55,15.3-42.86c5.07-8.81,7.16-17.78,4.65-27.67c-2.01-7.89-0.15-14.48,6.31-19.56
c6.21-4.88,8.08-11.22,8.85-19.05c2.06-20.81,5.09-41.55,10.46-61.84c3.41-12.87,4.8-26.11,7.4-39.13
c1.95-9.77,3.27-19.69,7.23-28.94c1.1-2.56,1.25-5.14,1.25-7.81c-0.02-5.65-0.2-11.3,1.31-16.83c2.51-9.21,0.76-18.49-0.21-27.63
c-1.44-13.62-1.15-27.08,0-40.72c1.8-21.49,5.66-42.84,4.33-64.58c-0.71-11.6,1.56-23.28-0.22-34.9
c-2.11-13.78-5.1-27.46-6.35-41.31c-2.13-23.76-10.16-46-16.05-68.81c-2.74-10.59-4.82-21.35-7.06-32.06
c-2.79-13.37-6.68-26.44-10.81-39.42c-9.77-30.74-19.51-61.49-28.64-92.44c-12.7-43.02-25.98-85.86-39.15-128.73
c-1.29-4.2-2.42-8.71-7.15-13.66c0,7.06-0.17,12.23,0.03,17.38c0.64,16.83-2.37,33.11-7.21,49.1c-1.54,5.08-3.37,10.05-6.04,14.74
c-5.23,9.19-5.03,9.62,1.55,17.49c3.41,4.08,6.86,8.12,10.18,12.27c6.72,8.41,11.84,17.75,14.8,28.1
c7.85,27.47,15.8,54.92,23.09,82.55c4.58,17.36,6.8,35.11,7.88,53.14c1.01,16.95,0.85,33.9,1.64,50.84
c0.46,9.96-0.24,19.91-1.8,29.82c-0.72,4.57-0.89,9.3-0.73,13.94c0.45,12.8-1.94,25.15-5.34,37.36
c-3.73,13.42-5.92,27.3-11.78,40.11c-0.52,1.14-0.32,2.62-0.49,4.41c4.2,0.88,8.36,1.87,12.57,2.6
c16.51,2.85,32.05,8.75,47.32,15.34c6.43,2.78,12.39,6.34,14.95,13.76c1.46,4.24,1.33,7.6-1.81,10.98
c-4.42,4.78-9.66,8.08-15.85,9.96c-10,3.04-17.47,9.02-22.35,18.41c-8.39,16.13-21.84,27.46-36.42,37.63
c-2.17,1.51-4.75,2.44-6.4,4.63c0.16,0.62,0.11,1.47,0.49,1.74c16.19,11.89,24.79,29.17,33.24,46.58
c5.59,11.52,8.01,23.85,9.8,36.38c1.17,8.22,2.31,16.44,3.62,24.63c2.03,12.71-0.95,24.48-6.73,35.65
c-2.66,5.13-13.93,8.67-20.57,6.65c-5.73-1.75-11.25-4.04-16.15-7.64c-2.66-1.96-5.51-3.66-7.57-5.02
c-19.32,11.08-39.37,18.65-59.64,25.57c-1.25,1.95-0.88,3.85-0.16,5.78c5.95,15.99,8.72,32.71,11.06,49.48
c2.05,14.73,1.22,29.18-5.42,42.95c-2.89,6-5.97,11.87-9.03,17.78c-3.85,7.43-9.74,10.29-17.88,10.06
c-12.02-0.35-17.37-4.5-20.29-17.08c-12.58,0.81-24.65-2.83-36.66-6.41c-23.82-7.09-45.95-17.55-64.67-34.28
c-5.51-4.93-9.65-10.91-11.96-18.06c-1.41-4.35-3.12-8.59-4.53-12.44c-1.73-0.75-2.59-0.12-3.31,0.53
c-16.15,14.56-34.73,24.28-56.03,29.03c-15.66,3.49-30.99,2.29-46.26-1.77c-10.63-2.83-20.82-6.85-30.62-11.84
c-1.48-0.76-2.92-1.6-4.41-2.35c-8.05-4.08-15.19-4.85-24.07,0.21c-15.23,8.68-30.78,17.19-47.84,22.19
c-11.49,3.37-22.98,6.52-34.86,8.53c-7.59,1.29-14.51-0.78-21.65-1.6c-25.24-2.91-49.83-8.51-72.6-20.29
c-2.89-1.49-5.8-2-8.66-1.37c-5.17,1.14-10.53,2.23-15.24,4.52c-21.04,10.24-43.27,16.97-65.68,23.28
c-17.9,5.05-35.7,10.46-53.56,15.66c-2.23,0.65-4.55,1.27-6.84,1.35c-22.07,0.79-43.5,5.69-64.99,10.09
c-37.79,7.74-75.49,15.94-113.28,23.64c-10.4,2.12-21.04,3.1-31.55,4.72c-7.23,1.11-14.4,2.58-21.64,3.58
c-10.53,1.46-21.06,3.09-31.65,3.85c-20.64,1.48-40.87,5.33-61.09,9.37c-15.67,3.13-31.58,4.52-47.49,5.62
c-15.98,1.11-31.7,3.46-47.23,7.28c-8.38,2.06-16.78,3.9-25.06,6.46c-7.58,2.34-15.77,2.48-23.75,2.32
c-24.31-0.51-48.56,1.19-72.81,2.22c-15.25,0.65-30.45,2.55-45.63,4.26c-3.99,0.45-7.95,0.7-11.93,0.7
c-22.33,0.03-44.66,0.28-66.99-0.06c-22.95-0.35-45.92-0.7-68.82-2.13c-30.51-1.91-60.77-6.45-91.1-10.2
c-47.2-5.83-93.92-14.8-141.02-21.27c-30.06-4.12-59.17-12.38-88.14-21.32c-34.64-10.69-68.72-23.1-103.45-33.43
c-21.14-6.29-41.26-14.9-61.19-23.94c-24.67-11.2-46.51-27.04-67.59-43.96c-26.98-21.66-52.91-44.52-78.6-67.67
c-14.66-13.2-26.68-28.78-38.26-44.62c-10.79-14.77-21.48-29.6-31.82-44.71c-12.25-17.9-23.21-36.49-32.88-55.86
c-9.65-19.34-19.2-38.73-28.39-58.3c-12.38-26.36-19.84-54.28-24.83-82.87c-3.71-21.26-5.57-42.75-8.03-64.17
c-4.31-37.45-4.69-74.98-4.2-112.56c0.15-11.61,1.4-23.2,2.03-34.81c0.91-16.91,1.53-33.84,2.6-50.74
c1.6-25.22,4.09-50.31,11.46-74.68c5.68-18.74,9.03-38.1,15.42-56.69c16.25-47.3,35.88-92.99,61.49-136.08
c8.72-14.67,18.67-28.2,29.62-41.21c17.54-20.85,34.86-41.9,51.66-63.34c5.46-6.97,9.21-15.34,13.39-23.26
c4.34-8.23,8.65-16.38,13.96-24.13c7.73-11.29,12.59-24.16,16.88-37.16c2.39-7.25,4.92-14.46,7.2-21.75
c1.89-6.03,0.62-8.28-5.41-10.55c-0.93-0.35-1.83-0.93-2.79-1.05c-13.77-1.79-25.91-8.14-38.32-13.73
c-7.3-3.29-14.21-7.15-20.27-12.55c-4.7-4.19-9.93-7.8-14.92-11.67c-20.09-15.57-33.23-35.86-41.61-59.71
c-7.52-21.43-13.79-43.19-15.36-65.81c-1.12-16.19-1.13-32.52,0.57-48.83c1.45-13.91,3.65-27.66,6.25-41.36
c4.57-24.07,13.62-46.59,24.79-68.22c5.19-10.05,12.44-18.94,19.87-27.43C144.75,770.25,149.77,762.26,157.39,756.25z
M704.31,1279.35c9.1,2.16,16.89,5.61,23.85,10.95c8.45,6.48,16.94,12.9,25.63,19.06c19.62,13.9,32.27,33.29,42.46,54.4
c6.09,12.61,8.98,26.42,11.92,40.09c0.74,3.42,2.2,5.78,4.76,8.26c12.18,11.82,24.65,23.36,35.76,36.25
c1.39,1.61,2.53,3.98,6.16,3.84c7.32-21.01,18.93-40.43,27.19-60.72c-1.78-4.45-5.05-6.27-7.85-8.59
c-7.18-5.94-13.85-12.33-19.83-19.57c-15.88-19.23-26.38-41.49-36.15-64.06c-8.07-18.63-12.66-38.49-18.42-57.92
c-7.71-26.01-11.53-52.5-11.14-79.62c0.08-5.33,0.08-10.66,0-15.99c-0.3-19.32,2.2-38.36,5.1-57.43
c3.04-20.03,6.91-39.91,10.12-59.89c3.02-18.79,7.48-37.11,14.24-54.88c9.47-24.92,20.67-49.06,33.85-72.22
c10.19-17.9,20.04-36.08,34.54-51.13c4.83-5.01,9.14-10.53,13.62-15.88c1.64-1.97,3.71-3.86,3.06-6.48
c-1.27-2.15-2.91-2.17-4.6-1.94c-5.37,0.72-10.6-0.27-15.88-1.07c-13.58-2.05-26.48-6.58-39.32-11.09
c-14.35-5.04-26.85-13.13-36.16-25.57c-1.19-1.6-2.18-3.73-4.68-4.47c-0.36,8.44,2.72,15.95,4.57,23.63
c4.66,19.38,4.75,39.05,2.69,58.56c-1.67,15.82-6.2,31.25-11.49,46.36c-11,31.42-26.09,60.59-49.21,84.81
c-14,14.66-29.15,28.24-44.13,41.93c-12.72,11.63-25.71,22.99-40.31,32.14c0.73,4.08,1.56,7.63,1.97,11.23
c2.23,19.5,6.3,38.62,11.42,57.56c4.78,17.65,9.2,35.39,13.83,53.08C699.21,1221.02,701.64,1249.8,704.31,1279.35z"/>
</g>
<g>
<path class="st0" d="M1864.23,761.17c-9.66,2.53-14.68,9.21-19.71,15.84c-1.39,1.84-2.45,3.93-3.86,5.75
c-10.53,13.61-13.64,29.26-12.75,46.03c0.13,2.39,0.87,4.53,2.1,6.56c4.1,6.8,7.33,14.14,13.13,19.86c3.85,3.8,5.62,8.8,7.71,13.75
c2.61,6.19,1.37,11.47-2.59,15.71c-3.61,3.87-9.27,3.77-14.09,2.39c-6.67-1.92-13.29-4.33-18.84-8.79
c-19.14-15.39-31.31-34.81-35.57-59.31c-2.92-16.82-3.7-33.68-3.18-50.64c0.57-18.95,5.52-36.61,16.48-52.35
c1.13-1.62,1.94-3.48,2.76-5.29c0.4-0.89,0.27-2.05,0.74-2.89c6.01-10.68,11.89-21.44,18.28-31.89c1.87-3.07,4.22-5.9,6.15-9.02
c9.99-16.19,27.98-21.98,43.03-17.16c9.09,2.91,17.42,1.39,25.63-2.98c10.22-5.45,20.98-5.96,31.95-2.63
c7.72,2.34,11.67,7.22,12.16,15.16c0.45,7.39-0.41,14.1-5.48,20.53c-7.16,9.08-13.14,19.13-19.26,28.98
c-4.99,8.03-12.21,13.85-18.79,20.33c-3.8,3.74-7.34,7.64-10.41,12.07c-2.03,2.93-5.06,5.28-7.96,7.47
C1867.69,751.75,1864.35,755.23,1864.23,761.17z"/>
<path class="st0" d="M2108.28,628.5c-11.7-19.06-28.74-23.03-48.65-19.25c-7.12-10.07-14.86-19.53-23.61-28.11
c-2.1-2.06-4.57-4.03-7.24-5.2c-15.34-6.74-31.18-9.36-47.49-3.93c-4.31,1.43-8.13,1.79-12.28-0.16
c-9.67-4.53-19.73-7.82-30.41-9.02c-0.55-0.06-1.02-0.75-2.18-1.65c8.51-3.72,14.96-11.33,25.3-9.72c-0.14-1.95-1.68-2.73-3.02-3.5
c-17.03-9.75-34.3-19.03-52.96-25.35c-3.44-1.17-7.05-1.89-10.6-2.7c-5.05-1.15-9.84-0.56-14.39,2.12
c-2.78,1.64-5.66,3.46-10.24,1.57c6.71-7.5,12.73-14.75,21.43-19.12c14.37-7.21,29.5-11.99,45.43-14.31
c11.35-1.65,22.56-0.79,33.64,1.78c20.23,4.7,39.63,11.42,56.3,24.38c0.78,0.61,1.45,1.36,2.31,2.18
c-0.45,15.04,6.3,26.61,17.85,35.84c7.36,5.89,15.56,7.15,24.44,4.9c3.22-0.81,6.35-1.83,10.09-1.17
c4.35,6.44,7.93,13.54,13.32,19.53c4.26,4.73,9.1,7.41,15.17,8.6c14.6,2.87,29.07,1.98,43.55-0.85c5.85-1.14,11.76-1.93,17.29-2.82
c37.73,29.49,57.15,82.51,50.48,137.12c-2.78,0.37-2.89-2.12-3.69-3.64c-8.54-16.22-19.22-31.1-29.29-46.35
c-8.29-12.57-18.88-22.97-31.32-31.72c-13.02-9.16-27.06-12.23-42.54-10.26C2113.01,627.96,2111.04,628.18,2108.28,628.5z"/>
</g>
</svg>

+ 41
- 0
presets/characters.js 查看文件

@@ -8,6 +8,9 @@ math.createUnit("lightyears", {
definition: "9.461e15 meters",
prefixes: "long"
})
math.createUnit("AU", {
definition: "149597870700 meters"
})
function makeCharacter(name, author, viewInfo, defaultSizes, defaultSize, extraInfo) {
if (extraInfo === undefined) {
extraInfo = {}
@@ -6513,6 +6516,44 @@ characterMakers["Mira al-Cul"] = () => {
)
};

characterMakers["Kuro-shi Uchū"] = () => {
return makeCharacter(
"Kuro-shi Uchū",
"Dragon Shark",
{
front: {
height: math.unit(17 + 1/12, "feet"),
weight: math.unit(476.2*5, "lbs"),
name: "Front",
image: {
source: "./media/characters/kuro-shi-uchū/front.svg",
extra: 2329/1835 * (1 / (1 - 0.02)),
bottom: 0.02
}
},
},
[
{
name: "Micro",
height: math.unit(2, "inches")
},
{
name: "Normal",
height: math.unit(12, "meters")
},
{
name: "Planetary",
height: math.unit(0.00929, "AU"),
default: true
},
{
name: "Universal",
height: math.unit(20, "gigaparsecs")
},
]
)
};


function makeCharacters() {
const results = [];


Loading…
取消
儲存