Greek key pattern

by sonone, May 27, 2020, 1:13 PM

I have liked the Greek key border for a long time, and now I can finally make it! Here is an example of a square boarder:
[asy]
size(200);
//add(shift(-5,6)*rotate(-90)*grid(41,41,lightgrey));
picture pat;
picture pic;
picture pac;
filldraw(pic,unitsquare,brown,brown+linewidth(.1));
filldraw(pac,unitsquare,darkblue,darkblue+linewidth(.1));
for(int i=0; i<=4; ++i){
add(pat,shift(0,i)*pic);
add(pat,shift(i,4)*pic);
}
for(int i=0; i<=2; ++i){
add(pat,shift(4,4-i)*pic);
add(pat,shift(4-i,2)*pic);
add(pat,shift(2,2-i)*pic);
add(pat,shift(i+3,0)*pic);
}
for(int i=0; i<=4; ++i){
add(shift(6i,0)*pat);
add(shift(30,-6(i)+1)*rotate(-90,(0,0))*pat);
add(shift(31-6i,-29)*rotate(180,(0,0))*pat);
add(shift(1,6(i)-30)*rotate(90,(0,0))*pat);
}
picture cor;
filldraw(cor,(0,0)--(0,5)--(3,5)--(3,0)--(0,0)--(1,1)--(2,1)--(2,4)--(1,4)--(1,1)--(0,0)--cycle, brown,brown+linewidth(.1));
add(shift(-4,0)*cor);
add(shift(30,5)*rotate(-90)*cor);
add(shift(35,-29)*rotate(-180)*cor);
add(shift(1,-34)*rotate(90)*cor);
for(int i=1; i<=27; ++i){
add(shift(i+1,-2)*pac);
add(shift(28,-1-i)*pac);
add(shift(i+1,-28)*pac);
add(shift(2,-1-i)*pac);
}
for(int i=1; i<=43; ++i){
add(shift(i-7,6)*pac);
add(shift(36,7-i)*pac);
add(shift(i-7,-36)*pac);
add(shift(-6,7-i)*pac);
}
[/asy]

I am working on making a function that bounds an area with the boarder, so stay tuned! :)

Comment

1 Comment

The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Looking good! I'm going to post something here about Asymptote/Python pretty soon, since I've had an idea.

by G.G.Otto, May 27, 2020, 4:45 PM

Old material is mostly Asymptote, new material is calculator programming

avatar

sonone
Archives
+ April 2023
+ August 2022
+ April 2021
+ August 2020
Shouts
Submit
  • I still exist as well.

    by G.G.Otto, Aug 11, 2023, 2:44 AM

  • hello I'm still here lol

    by player01, Aug 6, 2022, 6:24 PM

  • [REVIVAL] I will start posting more calculator relating posts very soon. Even though school has been busy, I have been programming my calculators a decent amount, so I have a lot to share...

    by sonone, Feb 18, 2022, 10:29 PM

  • wow its been like 2.5 years since geo class

    by pieMax2713, Feb 4, 2022, 8:38 PM

  • @violin21, I've been very busy with school lately and haven't been able to add another lesson. I will when i get a free moment

    by sonone, Aug 19, 2021, 12:45 AM

  • ORZ CODER

    by samrocksnature, Aug 9, 2021, 9:57 PM

  • Could you make more Asymptote lessons on your "How to do Asymptote" blog?

    by violin21, Aug 9, 2021, 7:26 PM

  • You can take it, just C&P the CSS into your CSS area

    by sonone, Apr 17, 2021, 10:08 PM

  • how can we take the CSS if we have permission to not take it?

    by GoogleNebula, Apr 17, 2021, 5:22 PM

  • That is awesome!

    by sonone, Apr 15, 2021, 10:09 PM

  • I modified your dodecahedron and got:
    [asy]
    import three;
    import solids;
    size(300);
    currentprojection=orthographic(0,1.3,1.2);
    light(0,5,10);

    real phi=(sqrt(6)+1)/3;
    real g=(phi-1)/2;
    real s=1/2;
    real a=sqrt(1-phi*phi/4-g*g)+phi/2;

    triple[] d;
    d[0]=(phi

    by Andrew2019, Mar 26, 2021, 12:15 AM

  • Not too many, just changing the color here and there. I really like your CSS!

    by sonone, Feb 2, 2021, 10:35 AM

  • Nice!

    I see you're making changes to the CSS. :)

    by G.G.Otto, Feb 1, 2021, 9:26 PM

  • I'm learning Java now!

    by sonone, Feb 1, 2021, 5:56 PM

  • And I took part of it from CaptainFlint and then added a ton of modifications. ;)

    by G.G.Otto, Dec 1, 2020, 8:56 AM

98 shouts
Tags
About Owner
  • Posts: 2106
  • Joined: Aug 20, 2016
Blog Stats
  • Blog created: Mar 28, 2020
  • Total entries: 61
  • Total visits: 4966
  • Total comments: 146
Search Blog
a