Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
new-sankaku committed Jul 29, 2024
1 parent 1f5eef9 commit 14e8e21
Show file tree
Hide file tree
Showing 86 changed files with 781 additions and 61 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
135 changes: 74 additions & 61 deletions SP-MangaEditer/json_js/00_base.js
Original file line number Diff line number Diff line change
Expand Up @@ -466,11 +466,24 @@ var base ={
"from side": {"url": "03_images/imgPromptHelper/from/from-side.webp" },
"from behind": {"url": "03_images/imgPromptHelper/from/from-behind.webp" }
},
"Size": {
"full body": {"url": "03_images/imgPromptHelper/full-body.webp" },
"upper body": {"url": "03_images/imgPromptHelper/upper-body.webp" },
"face close-up": {"url": "03_images/imgPromptHelper/face-close-up.webp" },
"cowboy shot": {"url": "03_images/imgPromptHelper/cowboy-shot.webp" }
"Shot": {
"full body": {"url": "03_images/imgPromptHelper/shot/full-body.webp" },
"upper body": {"url": "03_images/imgPromptHelper/shot/upper-body.webp" },
"profile": {"url": "03_images/imgPromptHelper/shot/profile.webp" },
"face focus": {"url": "03_images/imgPromptHelper/shot/face-focus.webp" },
"face close-up": {"url": "03_images/imgPromptHelper/shot/face-close-up.webp" },
"close up shot": {"url": "03_images/imgPromptHelper/shot/close-up-shot.webp" }
},
"Focus": {
"armpit-focus": {"url": "03_images/imgPromptHelper/focus/armpit-focus.webp" },
"ass-focus": {"url": "03_images/imgPromptHelper/focus/ass-focus.webp" },
"back-focus": {"url": "03_images/imgPromptHelper/focus/back-focus.webp" },
"breast-focus": {"url": "03_images/imgPromptHelper/focus/breast-focus.webp" },
"face-focus": {"url": "03_images/imgPromptHelper/focus/face-focus.webp" },
"foot-focus": {"url": "03_images/imgPromptHelper/focus/foot-focus.webp" },
"hand-focus": {"url": "03_images/imgPromptHelper/focus/hand-focus.webp" },
"navel-focus": {"url": "03_images/imgPromptHelper/focus/navel-focus.webp" },
"thigh-focus": {"url": "03_images/imgPromptHelper/focus/thigh-focus.webp" }
}
},

Expand Down Expand Up @@ -527,70 +540,70 @@ var base ={
"horizontalLine@111":{},
"Background": {
"Weather/Sky": {
"clear sky": {"url": "03_images/imgPromptHelper/clear-sky.webp" },
"sunrise": {"url": "03_images/imgPromptHelper/sunrise.webp" },
"dawn": {"url": "03_images/imgPromptHelper/dawn.webp" },
"in the morning": {"url": "03_images/imgPromptHelper/in-the-morning.webp" },
"in the noon": {"url": "03_images/imgPromptHelper/in-the-noon.webp" },
"in the evening": {"url": "03_images/imgPromptHelper/in-the-evening.webp" },
"in the night": {"url": "03_images/imgPromptHelper/in-the-night.webp" },
"cloud": {"url": "03_images/imgPromptHelper/cloud.webp" },
"rain": {"url": "03_images/imgPromptHelper/rain.webp" },
"snowy": {"url": "03_images/imgPromptHelper/snowy.webp" }
"clear sky": {"url": "03_images/imgPromptHelper/background/clear-sky.webp" },
"sunrise": {"url": "03_images/imgPromptHelper/background/sunrise.webp" },
"dawn": {"url": "03_images/imgPromptHelper/background/dawn.webp" },
"in the morning": {"url": "03_images/imgPromptHelper/background/in-the-morning.webp" },
"in the noon": {"url": "03_images/imgPromptHelper/background/in-the-noon.webp" },
"in the evening": {"url": "03_images/imgPromptHelper/background/in-the-evening.webp" },
"in the night": {"url": "03_images/imgPromptHelper/background/in-the-night.webp" },
"cloud": {"url": "03_images/imgPromptHelper/background/cloud.webp" },
"rain": {"url": "03_images/imgPromptHelper/background/rain.webp" },
"snowy": {"url": "03_images/imgPromptHelper/background/snowy.webp" }
},
"Nature": {
"forest": {"url": "03_images/imgPromptHelper/forest.webp" },
"cherry blossoms": {"url": "03_images/imgPromptHelper/cherry-blossoms.webp" },
"river": {"url": "03_images/imgPromptHelper/river.webp" },
"mountain": {"url": "03_images/imgPromptHelper/mountain.webp" },
"island": {"url": "03_images/imgPromptHelper/island.webp" },
"ocean": {"url": "03_images/imgPromptHelper/ocean.webp" },
"sandy beach": {"url": "03_images/imgPromptHelper/sandy-beach.webp" },
"snow mountain": {"url": "03_images/imgPromptHelper/snow-capped-mountain.webp" },
"cave": {"url": "03_images/imgPromptHelper/cave.webp" },
"boat": {"url": "03_images/imgPromptHelper/boat.webp" }
"forest": {"url": "03_images/imgPromptHelper/background/forest.webp" },
"cherry blossoms": {"url": "03_images/imgPromptHelper/background/cherry-blossoms.webp" },
"river": {"url": "03_images/imgPromptHelper/background/river.webp" },
"mountain": {"url": "03_images/imgPromptHelper/background/mountain.webp" },
"island": {"url": "03_images/imgPromptHelper/background/island.webp" },
"ocean": {"url": "03_images/imgPromptHelper/background/ocean.webp" },
"sandy beach": {"url": "03_images/imgPromptHelper/background/sandy-beach.webp" },
"snow mountain": {"url": "03_images/imgPromptHelper/background/snow-mountain.webp" },
"cave": {"url": "03_images/imgPromptHelper/background/cave.webp" },
"boat": {"url": "03_images/imgPromptHelper/background/boat.webp" }
},
"Indoor": {
"kitchen": {"url": "03_images/imgPromptHelper/kitchen.webp" },
"living": {"url": "03_images/imgPromptHelper/living.webp" },
"room": {"url": "03_images/imgPromptHelper/room.webp" },
"closet": {"url": "03_images/imgPromptHelper/closet.webp" },
"japanese-style room": {"url": "03_images/imgPromptHelper/japanese-style-room.webp" },
"garden": {"url": "03_images/imgPromptHelper/garden.webp" },
"school": {"url": "03_images/imgPromptHelper/school.webp" },
"super market": {"url": "03_images/imgPromptHelper/super-market.webp" },
"coffee shop": {"url": "03_images/imgPromptHelper/coffee-shop.webp" },
"restaurant": {"url": "03_images/imgPromptHelper/restaurant.webp" }
"kitchen": {"url": "03_images/imgPromptHelper/background/kitchen.webp" },
"living": {"url": "03_images/imgPromptHelper/background/living.webp" },
"room": {"url": "03_images/imgPromptHelper/background/room.webp" },
"closet": {"url": "03_images/imgPromptHelper/background/closet.webp" },
"japanese-style room": {"url": "03_images/imgPromptHelper/background/japanese-style-room.webp" },
"garden": {"url": "03_images/imgPromptHelper/background/garden.webp" },
"school": {"url": "03_images/imgPromptHelper/background/school.webp" },
"super market": {"url": "03_images/imgPromptHelper/background/super-market.webp" },
"coffee shop": {"url": "03_images/imgPromptHelper/background/coffee-shop.webp" },
"restaurant": {"url": "03_images/imgPromptHelper/background/restaurant.webp" }
},
"Commercial": {
"shopping mall": {"url": "03_images/imgPromptHelper/shopping-mall.webp" },
"market": {"url": "03_images/imgPromptHelper/market.webp" },
"skyscraper": {"url": "03_images/imgPromptHelper/skyscraper.webp" },
"shopping street": {"url": "03_images/imgPromptHelper/shopping-street.webp" },
"supermarket": {"url": "03_images/imgPromptHelper/supermarket.webp" },
"department store": {"url": "03_images/imgPromptHelper/department-store.webp" },
"restaurant": {"url": "03_images/imgPromptHelper/restaurant.webp" },
"cafe": {"url": "03_images/imgPromptHelper/cafe.webp" },
"cinema": {"url": "03_images/imgPromptHelper/cinema.webp" },
"club": {"url": "03_images/imgPromptHelper/club.webp" },
"hotel": {"url": "03_images/imgPromptHelper/hotel.webp" },
"bar": {"url": "03_images/imgPromptHelper/bar.webp" },
"art gallery": {"url": "03_images/imgPromptHelper/art-gallery.webp" },
"hospital": {"url": "03_images/imgPromptHelper/hospital.webp" },
"bank": {"url": "03_images/imgPromptHelper/bank.webp" }
"shopping mall": {"url": "03_images/imgPromptHelper/background/shopping-mall.webp" },
"market": {"url": "03_images/imgPromptHelper/background/market.webp" },
"skyscraper": {"url": "03_images/imgPromptHelper/background/skyscraper.webp" },
"shopping street": {"url": "03_images/imgPromptHelper/background/shopping-street.webp" },
"supermarket": {"url": "03_images/imgPromptHelper/background/supermarket.webp" },
"department store": {"url": "03_images/imgPromptHelper/background/department-store.webp" },
"restaurant": {"url": "03_images/imgPromptHelper/background/restaurant.webp" },
"cafe": {"url": "03_images/imgPromptHelper/background/cafe.webp" },
"cinema": {"url": "03_images/imgPromptHelper/background/cinema.webp" },
"club": {"url": "03_images/imgPromptHelper/background/club.webp" },
"hotel": {"url": "03_images/imgPromptHelper/background/hotel.webp" },
"bar": {"url": "03_images/imgPromptHelper/background/bar.webp" },
"art gallery": {"url": "03_images/imgPromptHelper/background/art-gallery.webp" },
"hospital": {"url": "03_images/imgPromptHelper/background/hospital.webp" },
"bank": {"url": "03_images/imgPromptHelper/background/bank.webp" }
},
"Public Facility": {
"library": {"url": "03_images/imgPromptHelper/library.webp" },
"hospital": {"url": "03_images/imgPromptHelper/hospital.webp" },
"school": {"url": "03_images/imgPromptHelper/school.webp" },
"police station": {"url": "03_images/imgPromptHelper/police-station.webp" },
"airport": {"url": "03_images/imgPromptHelper/airport.webp" },
"museum": {"url": "03_images/imgPromptHelper/museum.webp" },
"city hall": {"url": "03_images/imgPromptHelper/city-hall.webp" },
"shrine": {"url": "03_images/imgPromptHelper/shrine.webp" },
"post office": {"url": "03_images/imgPromptHelper/post-office.webp" },
"park": {"url": "03_images/imgPromptHelper/park.webp" },
"bus stop": {"url": "03_images/imgPromptHelper/bus-stop.webp" }
"library": {"url": "03_images/imgPromptHelper/background/library.webp" },
"hospital": {"url": "03_images/imgPromptHelper/background/hospital.webp" },
"school": {"url": "03_images/imgPromptHelper/background/school.webp" },
"police station": {"url": "03_images/imgPromptHelper/background/police-station.webp" },
"airport": {"url": "03_images/imgPromptHelper/background/airport.webp" },
"museum": {"url": "03_images/imgPromptHelper/background/museum.webp" },
"city hall": {"url": "03_images/imgPromptHelper/background/city-hall.webp" },
"shrine": {"url": "03_images/imgPromptHelper/background/shrine.webp" },
"post office": {"url": "03_images/imgPromptHelper/background/post-office.webp" },
"park": {"url": "03_images/imgPromptHelper/background/park.webp" },
"bus stop": {"url": "03_images/imgPromptHelper/background/bus-stop.webp" }
}
},
"horizontalLine@112":{},
Expand Down
162 changes: 162 additions & 0 deletions SP-MangaEditer/test/MangaTone/focus-line-generator.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>集中線ジェネレーター(中心位置、大きさ、色調整可能)</title>
<style>
body { font-family: Arial, sans-serif; margin: 0; padding: 20px; display: flex; flex-direction: column; align-items: center; background-color: #f0f0f0; }
canvas { border: 1px solid #000; margin-bottom: 20px; }
.controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 20px; }
.control { display: flex; flex-direction: column; align-items: center; }
label { margin-bottom: 5px; }
input { width: 100px; }
</style>
</head>
<body>
<canvas id="myCanvas" width="500" height="500"></canvas>
<div class="controls">
<div class="control">
<label for="lineNum">線の数:</label>
<input type="range" id="lineNum" min="50" max="500" value="200">
</div>
<div class="control">
<label for="crMax">最大半径:</label>
<input type="range" id="crMax" min="100" max="400" value="200">
</div>
<div class="control">
<label for="crMin">最小半径:</label>
<input type="range" id="crMin" min="50" max="200" value="150">
</div>
<div class="control">
<label for="centerX">中心 X:</label>
<input type="range" id="centerX" min="0" max="500" value="250">
</div>
<div class="control">
<label for="centerY">中心 Y:</label>
<input type="range" id="centerY" min="0" max="500" value="250">
</div>
<div class="control">
<label for="lineColor">線の色:</label>
<input type="color" id="lineColor" value="#000000">
</div>
</div>
<script>
var focusLine = function(cs, centralX, centralY, lineWidth, lineNum, circleRadiusMax, circleRadiusMin, lineColor) {
var ctx = cs.getContext('2d');
var lines = [];

var getRandomInt = function(max, min) {
return Math.floor(Math.random() * (max - min)) + min;
};

var getCircumPos = {
x: function(d, r, cx) {
return Math.cos(Math.PI / 180 * d) * r + cx;
},
y: function(d, r, cy) {
return Math.sin(Math.PI / 180 * d) * r + cy;
}
};

var Liner = function() {
this.initialize();
};

Liner.prototype = {
initialize: function() {
this.deg = getRandomInt(360, 0);
},
setPos: function() {
this.moveDeg = this.deg + (getRandomInt(lineWidth, 1) / 10);
var sizeMultiplier = 1 + Math.max(
Math.abs(centralX - cs.width / 2) / (cs.width / 2),
Math.abs(centralY - cs.height / 2) / (cs.height / 2)
);
this.endRadius = getRandomInt(circleRadiusMax, circleRadiusMin) * sizeMultiplier;
var canvasRadius = Math.max(cs.width, cs.height) * sizeMultiplier;
this.startPos = {
x: getCircumPos.x(this.deg, canvasRadius, centralX),
y: getCircumPos.y(this.deg, canvasRadius, centralY)
};
this.movePos = {
x: getCircumPos.x(this.moveDeg, canvasRadius, centralX),
y: getCircumPos.y(this.moveDeg, canvasRadius, centralY)
};
this.endPos = {
x: getCircumPos.x(this.moveDeg, this.endRadius, centralX),
y: getCircumPos.y(this.moveDeg, this.endRadius, centralY)
};
},
update: function() {
this.setPos();
},
draw: function() {
ctx.beginPath();
ctx.lineWidth = 1;
ctx.fillStyle = lineColor;
ctx.moveTo(this.startPos.x, this.startPos.y);
ctx.lineTo(this.movePos.x, this.movePos.y);
ctx.lineTo(this.endPos.x, this.endPos.y);
ctx.fill();
ctx.closePath();
},
render: function() {
this.update();
this.draw();
}
};

function createLines(num) {
lines = [];
var i = 0;
for (; i < num; i++) {
lines[lines.length] = new Liner();
}
}

function render() {
var i = 0;
var l = lines.length;
ctx.clearRect(0, 0, cs.width, cs.height);
for (; i < l; i++) {
lines[i].render();
}
}

createLines(lineNum);
render();
};

var cs = document.getElementById('myCanvas');
var conf = {
cx: cs.width / 2,
cy: cs.height / 2,
lineWidth: 30,
lineNum: 200,
crMax: 200,
crMin: 150,
color: '#000000'
};

function updateFocusLine() {
conf.lineNum = parseInt(document.getElementById('lineNum').value);
conf.crMax = parseInt(document.getElementById('crMax').value);
conf.crMin = parseInt(document.getElementById('crMin').value);
conf.cx = parseInt(document.getElementById('centerX').value);
conf.cy = parseInt(document.getElementById('centerY').value);
conf.color = document.getElementById('lineColor').value;
focusLine(cs, conf.cx, conf.cy, conf.lineWidth, conf.lineNum, conf.crMax, conf.crMin, conf.color);
}

document.getElementById('lineNum').addEventListener('input', updateFocusLine);
document.getElementById('crMax').addEventListener('input', updateFocusLine);
document.getElementById('crMin').addEventListener('input', updateFocusLine);
document.getElementById('centerX').addEventListener('input', updateFocusLine);
document.getElementById('centerY').addEventListener('input', updateFocusLine);
document.getElementById('lineColor').addEventListener('input', updateFocusLine);

updateFocusLine();
</script>
</body>
</html>
Loading

0 comments on commit 14e8e21

Please sign in to comment.