Difference between revisions of "Asymptote: How to"

(Drawing)
(Advance)
(14 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
{{Asymptote}}
 
{{Asymptote}}
=Filling=
+
=Asymptote how to pages=
As explained above, you can create closed objects such as:
 
  
<tt>draw(origin--(5,0)--(3,4)--cycle);</tt>
+
==Basics==
 +
[[Asymptote: Drawing|Drawing]]
  
<asy>
+
[[Asymptote: Filling|Filling]]
draw(origin--(5,0)--(3,4)--cycle);
 
</asy>
 
  
Now introducing the [b]fill()[/b] command. You would fill this triangle with green by the following:
+
[[Asymptote: Drawing part 2|Drawing part 2]]
  
<tt>fill(origin--(5,0)--(3,4)--cycle, green);</tt>
+
[[Asymptote: Labeling|Labeling]]
  
<asy>
+
[[Asymptote: Marking Angles|Marking Angles]]
fill(origin--(5,0)--(3,4)--cycle, green);
 
</asy>
 
  
Note how there is no outline. To create an outline and fill, without making two different statements, use the '''filldraw()''' command. Like the order of filldraw, you put the color of the fill before the draw.
+
[[Asymptote: Asymptote in the Aops Wiki|Asymptote in The Aops Wiki]]
  
<tt>filldraw(origin--(5,0)--(3,4)--cycle, green, red+linewidth(1));</tt>
+
==Intermediate==
 +
[[Asymptote: Graphing|Graphing]]
  
<asy>
+
[[Asymptote: Olympiad Package Part 1|Olympiad Package Part 1: Value Setting]]
filldraw(origin--(5,0)--(3,4)--cycle, green, red+linewidth(1));
+
 
</asy>
+
==Advanced==
 +
 
 +
==Examples with walkthrough steps==
 +
 
 +
[[Asymptote: Example 1|Example 1]]

Revision as of 20:17, 11 October 2019