Skip to content

Commit

Permalink
L-system bank update
Browse files Browse the repository at this point in the history
  • Loading branch information
Amphiluke committed Jun 7, 2024
1 parent 584bb7b commit 2d31153
Show file tree
Hide file tree
Showing 3 changed files with 96 additions and 81 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.5.1",
"version": "2.5.2",
"type": "module",
"scripts": {
"lint": "eslint",
Expand Down
171 changes: 93 additions & 78 deletions src/stores/bank.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,29 @@ export default [
Y: "+FX+FXFY-FY-FY",
},
},
{ // [AH]
lid: "Cesaro 1",
axiom: "F",
rules: {
F: "F++++++++++F--------------------F++++++++++F",
},
alpha: 180,
theta: 8,
iterations: 6,
step: 2.9,
},
{ // [AH*]
lid: "Cesaro 2",
axiom: "AAAA",
rules: {
A: "F+++++++++F|",
F: "F++++++++F|++F++++++++F",
},
alpha: 0,
theta: 10,
iterations: 6,
step: 4,
},
{
lid: "chain",
axiom: "F+F+F+F",
Expand Down Expand Up @@ -183,24 +206,6 @@ export default [
iterations: 6,
step: 7,
},
{
lid: "island",
axiom: "F+F+F+F",
rules: {
F: "F+F-F-FFF+F+F-F",
},
alpha: 0,
theta: 90,
iterations: 3,
step: 4,
attributes: {
fill: "peru",
stroke: "forestgreen",
"stroke-linejoin": "round",
"stroke-opacity": "0.8",
"stroke-width": "5",
},
},
{
lid: "Koch’s curve",
axiom: "F+F+F+F",
Expand Down Expand Up @@ -379,6 +384,14 @@ export default [
theta: 90,
iterations: 4,
step: 8,
attributes: {
fill: "orchid",
"fill-opacity": "0.6",
stroke: "darkorchid",
"stroke-width": "5",
"paint-order": "stroke",
"stroke-linecap": "square",
},
},
{ // [WM]
lid: "Sierpinski median curve",
Expand Down Expand Up @@ -508,66 +521,6 @@ export default [
],
},

{
cid: "Miscellaneous",
items: [
{ // [AH]
lid: "Cesaro 1",
axiom: "F",
rules: {
F: "F++++++++++F--------------------F++++++++++F",
},
alpha: 180,
theta: 8,
iterations: 6,
step: 2.9,
},
{ // [AH*]
lid: "Cesaro 2",
axiom: "AAAA",
rules: {
A: "F+++++++++F|",
F: "F++++++++F|++F++++++++F",
},
alpha: 0,
theta: 10,
iterations: 6,
step: 4,
},
{
lid: "rack-wheel",
axiom: "A+A",
rules: {
A: "F++++++F",
F: "A|++A",
},
alpha: 0,
theta: 10,
iterations: 9,
step: 60,
attributes: {
stroke: "white",
fill: "steelblue",
},
},
{ // [AK]
lid: "sea urchin",
axiom: "F",
rules: {
F: "F[-F+F-F]+[+F-F-F]",
},
alpha: 0,
theta: 20,
iterations: 5,
step: 15,
attributes: {
stroke: ["#800", "#800", "#800", "#971a8b", "#804", "rgba(229,169,169,0.12)"],
transform: ["n/a", "n/a", "n/a", "n/a", "n/a", "scale(0.85)"],
},
},
],
},

{
cid: "Plants",
items: [
Expand Down Expand Up @@ -1032,6 +985,17 @@ export default [
{
cid: "Shapes",
items: [
{ // [AH]
lid: "ADH309a",
axiom: "F+++F",
rules: {
F: "F+FF++F++F-F++FF",
},
alpha: 180,
theta: 60,
iterations: 5,
step: 3,
},
{
lid: "carpet",
axiom: "F-F-F-F",
Expand Down Expand Up @@ -1174,6 +1138,26 @@ export default [
iterations: 5,
step: 1.5,
},
{
lid: "island",
axiom: "F+F+F+F",
rules: {
F: "F+F-F-FFF+F+F-F",
},
alpha: 0,
theta: 90,
iterations: 3,
step: 4,
attributes: {
fill: "forestgreen",
"fill-opacity": "0.8",
"paint-order": "stroke",
stroke: "peru",
"stroke-linejoin": "round",
"stroke-width": "6",
style: "filter: drop-shadow(0 4px 1px navy) blur(1px)",
},
},
{
lid: "Levi’s carpet",
axiom: "F++F++F++F",
Expand Down Expand Up @@ -1307,6 +1291,37 @@ export default [
"stroke-dasharray": ["n/a", "10 3"],
},
},
{
lid: "rack-wheel",
axiom: "A+A",
rules: {
A: "F++++++F",
F: "A|++A",
},
alpha: 0,
theta: 10,
iterations: 9,
step: 60,
attributes: {
stroke: "white",
fill: "steelblue",
},
},
{ // [AK]
lid: "sea urchin",
axiom: "F",
rules: {
F: "F[-F+F-F]+[+F-F-F]",
},
alpha: 0,
theta: 20,
iterations: 5,
step: 15,
attributes: {
stroke: ["#800", "#800", "#800", "#971a8b", "#804", "rgba(229,169,169,0.12)"],
transform: ["n/a", "n/a", "n/a", "n/a", "n/a", "scale(0.85)"],
},
},
{
lid: "Sierpinski carpet",
axiom: "FXF--FF--FF",
Expand Down

0 comments on commit 2d31153

Please sign in to comment.