Skip to content

Commit

Permalink
L-system bank improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Amphiluke committed Dec 17, 2023
1 parent 0d00d0e commit f4ba922
Show file tree
Hide file tree
Showing 3 changed files with 97 additions and 11 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "lindsvg-pwa",
"private": true,
"version": "2.3.1",
"version": "2.3.2",
"type": "module",
"scripts": {
"lint": "eslint \"src/**/*.{mjs,vue}\"",
Expand Down
102 changes: 94 additions & 8 deletions src/stores/bank.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ export default [
theta: 90,
iterations: 3,
step: 4,
attributes: {
stroke: "darkgoldenrod",
"stroke-width": "1.5",
},
},
{
lid: "cross",
Expand Down Expand Up @@ -179,6 +183,10 @@ export default [
theta: 60,
iterations: 4,
step: 5,
attributes: {
stroke: "deepskyblue",
"stroke-width": "1.5",
},
},
{ // [WM]
lid: "lace",
Expand Down Expand Up @@ -209,6 +217,27 @@ export default [
iterations: 7,
step: 15,
},
{
lid: "meander",
axiom: "A",
rules: {
A: "CCDEEGA",
C: "FF+++++++++++++++",
D: "F+++++++++++++++",
E: "F---------------",
F: "F",
G: "FF--------------",
},
alpha: 0,
theta: 6,
iterations: 61,
step: 10,
attributes: {
stroke: "sienna",
"stroke-width": "4",
"stroke-linecap": "square",
},
},
{
lid: "Moore curve",
axiom: "LFL+F+LFL",
Expand Down Expand Up @@ -288,7 +317,7 @@ export default [
},
{
lid: "Sierpinski curve",
axiom: "F+FX+F+XF",
axiom: "F+XF+F+XF",
rules: {
F: "F",
X: "XF-F+F-XF+F+XF-F+F-X",
Expand Down Expand Up @@ -354,6 +383,17 @@ export default [
iterations: 8,
step: 6,
},
{
lid: "tridragon",
axiom: "F+F+F",
rules: {
F: "F+FF-F",
},
alpha: 0,
theta: 120,
step: 6,
iterations: 6,
},
],
},

Expand Down Expand Up @@ -394,9 +434,13 @@ export default [
theta: 10,
iterations: 9,
step: 60,
attributes: {
stroke: "white",
fill: "steelblue",
},
},
{ // [AK]
lid: "urchin",
lid: "sea urchin",
axiom: "F",
rules: {
F: "F[-F+F-F]+[+F-F-F]",
Expand Down Expand Up @@ -503,8 +547,8 @@ export default [
iterations: 5,
step: 7,
attributes: {
stroke: "forestgreen",
"stroke-width": ["4", "3", "2", "1"],
stroke: ["olive", "darkolivegreen", "forestgreen"],
"stroke-width": ["5", "3", "2", "1"],
"stroke-linecap": "round",
},
},
Expand Down Expand Up @@ -551,7 +595,11 @@ export default [
alpha: 90,
theta: 20,
iterations: 9,
step: 10,
step: 12,
attributes: {
stroke: ["darkolivegreen", "forestgreen"],
"stroke-width": ["3", "2", "1"],
},
},
{
lid: "dandelion",
Expand Down Expand Up @@ -750,7 +798,7 @@ export default [
iterations: 6,
step: 10,
attributes: {
stroke: "#514d3a",
stroke: "#6f4d35",
"stroke-width": ["16", "11", "9", "7", "6", "5", "3", "2", "2", "1"],
"stroke-linecap": ["square", "round"],
},
Expand Down Expand Up @@ -828,7 +876,7 @@ export default [
iterations: 7,
step: 6,
attributes: {
stroke: ["#514d3a", "#514d3a", "#514d2a", "#55771c", "#55771c", "#44621c", "rgba(131, 163, 90, 0.5)", "rgba(164, 184, 102, 0.5)", "rgba(192, 200, 97, 0.5)"],
stroke: ["#6f4d35", "#6f4d35", "#5f4d35", "#55771c", "#55771c", "#44621c", "rgba(131, 163, 90, 0.5)", "rgba(164, 184, 102, 0.5)", "rgba(192, 200, 97, 0.5)"],
"stroke-width": ["13", "6", "3", "1"],
"stroke-linecap": ["square", "square", "round"],
transform: ["skewY(-35)", "translate(0)"],
Expand Down Expand Up @@ -866,7 +914,25 @@ export default [
iterations: 4,
step: 5,
attributes: {
stroke: "forestgreen",
stroke: "mediumaquamarine",
"stroke-width": "2",
},
},
{
lid: "Dekking’s church",
axiom: "WXYZ",
rules: {
W: "FW+F-ZFW-F+X",
X: "FW+F-Z",
Y: "++F--Y+F-Z",
Z: "++F--Y-F+X++F--Y-F+X",
},
alpha: 180,
theta: 90,
step: 8,
iterations: 7,
attributes: {
"stroke": "mediumslateblue",
"stroke-width": "1.5",
},
},
Expand Down Expand Up @@ -959,6 +1025,9 @@ export default [
theta: 30,
iterations: 4,
step: 4.5,
attributes: {
stroke: "cornflowerblue",
},
},
{ // [HS*]
lid: "Penrose mosaic",
Expand Down Expand Up @@ -1032,6 +1101,9 @@ export default [
theta: 60,
iterations: 3,
step: 2,
attributes: {
stroke: "deepskyblue",
},
},
{ // [SE*]
lid: "snowflake 2",
Expand All @@ -1044,6 +1116,9 @@ export default [
theta: 45,
iterations: 9,
step: 1,
attributes: {
stroke: "deepskyblue",
},
},
{ // [PP]
lid: "spiral tiling",
Expand Down Expand Up @@ -1087,6 +1162,17 @@ export default [
iterations: 8,
step: 2,
},
{
lid: "wire globule",
axiom: "F",
rules: {
F: "FF-F-FF+",
},
alpha: 0,
theta: 35,
step: 25,
iterations: 5,
},
],
},
];

0 comments on commit f4ba922

Please sign in to comment.