-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
massive network overhaul, looking good
- Loading branch information
Showing
9 changed files
with
382 additions
and
318 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
// A curved line going from the upper left to the lower right. The left side of the line has a red arrow facing left and the right side has a blue arrow facing right. Both arrows are triangular with black borders. | ||
let edge = Edge([0.2, 0.3], [0.8, 0.7], { | ||
let node1 = Node('hello', [0.2, 0.3]); | ||
let node2 = Node('world', [0.8, 0.7]); | ||
let edge = Edge(node1, node2, { | ||
arrow_beg: true, arrow_end: true, arrow_base: true, | ||
arrow_beg_fill: '#ff0d57', arrow_end_fill: '#1e88e5', | ||
}); | ||
return edge; | ||
return Group([node1, node2, edge]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
// Two boxes with text in them that have black borders and gray interiors. The box in the upper left says "hello" and the box in the lower right says "world!". | ||
let hello = Node('hello', {fill: '#EEE'}); | ||
let world = Node('world!', {fill: '#EEE'}); | ||
let scat = Points([ | ||
[hello, [0.33, 0.3]], [world, [0.62, 0.7]] | ||
], {size: [0.25, 0.1]}); | ||
return scat; | ||
let node_attr = {fill: '#eee', size: [0.25, 0.1]}; | ||
let hello = Node('hello', [0.33, 0.3], node_attr); | ||
let world = Node('world!', [0.62, 0.7], node_attr); | ||
let group = Group([hello, world]); | ||
return group; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// a decaying sine wave filled in with blue | ||
let decay = x => exp(-0.1*x) * sin(x); | ||
let fill = SymFill({fy1: decay, fy2: 0, xlim: [0, 6*pi], fill: blue, N: 250}); | ||
let fill = SymFill({fy1: decay, fy2: 0, xlim: [0, 6*pi], fill: blue, fill_opacity: 0.6, N: 250}); | ||
let graph = Graph(fill, {aspect: phi}); | ||
return Frame(graph, {margin: 0.1}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
// There are two latex equations framed by rounded borders arranged vertically. The top one shows a Gaussian integral and the bottom one shows a trigonometric identity. They are framed by a square with the title "Facts". | ||
let tex1 = Tex('\\int_0^{\\infty} \\exp(-x^2) dx = \\sqrt{\\pi}'); | ||
let tex2 = Tex('\\sin^2(\\theta) + \\cos^2(\\theta) = 1'); | ||
let node1 = Node(tex1, {border_radius: 0.05}); | ||
let node2 = Node(tex2, {border_radius: 0.05}); | ||
let node1 = TextFrame(tex1, {border_radius: 0.05}); | ||
let node2 = TextFrame(tex2, {border_radius: 0.05}); | ||
let group = Points([[node1, [0.5, 0.3]], [node2, [0.5, 0.7]]], {size: 0.35}); | ||
return TitleFrame(group, 'Facts', {border: 1, margin: 0.1}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.