Skip to content

Commit 6175d30

Browse files
authored
Gallery content (#109)
Gallery content
2 parents 868b6de + 5ca951b commit 6175d30

File tree

166 files changed

+3397
-1591
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

166 files changed

+3397
-1591
lines changed

.netlify/state.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"siteId": "c081644c-312b-486e-8594-8bb5c3a869ca"
3+
}

.node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v11.9.0

.vscode/settings.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
{
22
"workbench.colorCustomizations": {
3-
"activityBar.background": "#a9d882",
4-
"activityBar.foreground": "#15202b",
5-
"activityBar.inactiveForeground": "#15202b99",
6-
"activityBarBadge.background": "#558aca",
7-
"activityBarBadge.foreground": "#15202b",
8-
"titleBar.activeBackground": "#8ecc5b",
9-
"titleBar.inactiveBackground": "#8ecc5b99",
10-
"titleBar.activeForeground": "#15202b",
11-
"titleBar.inactiveForeground": "#15202b99",
12-
"statusBar.background": "#8ecc5b",
13-
"statusBarItem.hoverBackground": "#74ba3a",
14-
"statusBar.foreground": "#15202b"
3+
"activityBar.background": "#fb2045",
4+
"activityBar.foreground": "#e7e7e7",
5+
"activityBar.inactiveForeground": "#e7e7e799",
6+
"activityBarBadge.background": "#115e02",
7+
"activityBarBadge.foreground": "#e7e7e7",
8+
"titleBar.activeBackground": "#e4042a",
9+
"titleBar.inactiveBackground": "#e4042a99",
10+
"titleBar.activeForeground": "#e7e7e7",
11+
"titleBar.inactiveForeground": "#e7e7e799",
12+
"statusBar.background": "#e4042a",
13+
"statusBarItem.hoverBackground": "#fb2045",
14+
"statusBar.foreground": "#e7e7e7"
1515
}
1616
}

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Basil.js
22

3-
[![Build Status](https://travis-ci.org/basiljs/basiljs.github.io.svg?branch=master)](https://travis-ci.org/basiljs/basiljs.github.io)
3+
[![Build Status](https://travis-ci.org/basiljs/basiljs.github.io.svg?branch=master)](https://travis-ci.org/basiljs/basiljs.github.io)
4+
5+
Hosted on:
6+
7+
[![Netlify Badge](https://www.netlify.com/img/global/badges/netlify-color-accent.svg)](https://basiljs2.netlify.com/)
48

59
This repo holds the [site/docs for Basil.js](https://basiljs.github.io/)
610

@@ -36,6 +40,14 @@ To develop in this run:
3640
bundle update
3741
bundle exec jekyll serve --livereload
3842

43+
## Recipes
44+
45+
Resize and crop multiple images using [`mogrify`](https://www.imagemagick.org/script/mogrify.php)
46+
47+
```
48+
mogrify -resize 320x180^ -gravity Center -extent 320x180 -quality 100 -format png ./*/thumbnail.jpg
49+
50+
```
3951
## License
4052

4153
Copyright (c) 2013-2019 Basil.js

_source/_includes/aside-left.html

Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,36 @@
11
<aside>
2-
<a href="/"><div class="logo" id="logo"></div></a>
3-
<div class="nav-o-meter"><ul class="bars"><li></li><li></li><li></li></ul></div>
2+
<a href="/">
3+
<div class="logo" id="logo"></div>
4+
</a>
5+
<div class="nav-o-meter">
6+
<ul class="bars">
7+
<li></li>
8+
<li></li>
9+
<li></li>
10+
</ul>
11+
</div>
412
<nav class="main-menu">
5-
<ul>
6-
<!--
13+
<ul>
14+
<!--
715
loop all pages
816
exclude all entry layouts
917
include all default and the reference
1018
exclude the root path
1119
-->
1220
{% assign pages = site.pages | sort: 'order' %}
1321
{% for item in pages %}{% if item.layout != 'entry' %}{%if item.layout == 'default' or item.layout == 'reference' %}{% if item.url != '/' %}
14-
<li class="menu-item {% if item.title == page.title %}active{% endif %}"><a href="{{item.url}}" class="textgrow menu-link">{{item.title}}</a></li>
15-
{% endif %}{% endif %}{% endif %}{% endfor %}
22+
<li class="menu-item {% if item.title == page.title %}active{% endif %}"><a href="{{item.url}}"
23+
class="textgrow menu-link">{{item.title}}</a></li>
24+
{% endif %}{% endif %}{% endif %}{% endfor %}
1625

17-
</ul>
18-
<div class="tweet">
19-
<div class="message"></div>
20-
<div class="tweettime"></div>
21-
<div class="twitter-link"><a href="https://twitter.com/basil_js" class="textgrow menu-link">@basil_js</a></div>
22-
</div>
23-
</nav>
24-
<div class="fhnw-logo">
25-
<a href="http://www.fhnw.ch/hgk/ivk"><img src="/assets/images/fhnwlogo.png" alt="FHNW logo and link"></a>
26-
</div>
26+
</ul>
27+
<div class="tweet">
28+
<div class="message"></div>
29+
<div class="tweettime"></div>
30+
<div class="twitter-link"><a href="https://twitter.com/basil_js" class="textgrow menu-link">@basil_js</a></div>
31+
</div>
32+
<div class="fhnw-logo">
33+
<a href="https://www.fhnw.ch/hgk/ivk"><img src="/assets/images/fhnwlogo.png" alt="FHNW logo and link"></a>
34+
</div>
35+
</nav>
2736
</aside>

_source/_includes/changelog.txt

Lines changed: 280 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,280 @@
1+
+ new
2+
* changed
3+
- removed
4+
5+
..- --.- ..- -.... -..-- .-..-. -.-..---.-.-....--.-- -....-.... -..-- .-
6+
basil.js x.x.x DAY MONTH YEAR
7+
8+
+ basil works without the b. prefix now
9+
+ function draw() works without b.go() now, function loop() replaces b.loop()
10+
+ User settings (units, anchor point etc.) are now saved before and restored after script execution
11+
+ Added mode() to set performance modes (VISIBLE, HIDDEN, SILENT) during script execution
12+
+ Added frameRate() to set frame rate during looping scripts
13+
+ Added transform() function to transform page items independent of the current matrix
14+
and to measure current transforms of page items
15+
+ Added point(), quad() and triangle() to draw the corresponding shapes
16+
+ Added referencePoint() function to set the reference point for transform()
17+
+ Added file() and folder()
18+
gets files and folders or creates them
19+
+ Added files()
20+
gets all files of a folder
21+
+ Added selectFile(), selectFiles() and selectFolder()
22+
opens a selection dialog to select files or folders
23+
+ Added applyParagraphStyle(), applyCharacterStyle(), applyObjectStyle(),
24+
set the style of a text object/page item.
25+
see examples/typography/styles.jsx
26+
+ Added applyMasterPage()
27+
applies a master page to a page
28+
+ Added masterPage()
29+
activates and returns a master page
30+
+ Added arrange()
31+
allows to arrange page items or layers in z-space
32+
+ Added property()
33+
sets a property of an object to a given value
34+
+ Added graphics() to loop over graphics in a given container
35+
+ Added textStyleRanges() to loop over text style ranges in a given container
36+
+ Added swatch()
37+
returns a color or gradient of a given name
38+
+ Added revert()
39+
reverts the document to a fresh state
40+
+ Added SCRIPTNAME
41+
holds the name of the current script
42+
+ Added isInteger()
43+
checks if a given variable is an integer
44+
45+
* translate(), rotate() and scale() now behave like they do in Processing and change the current matrix
46+
* basil scripts will by default use the user's default units or the current units of the document,
47+
as well as the transformation reference point set by the user
48+
* text() can be used to place text into shapes or as text paths on graphic lines
49+
* image() now allows to place images into text frames as well
50+
* canvasMode() behaves a lot more reliable now
51+
FACING_PAGES, FACING_MARGINS, FACING_BLEEDS, fixed for 3+ page spreads
52+
BLEED, MARGIN, FACING_MARGINS, FACING_BLEEDS, fixed for single page in facing_pages mode
53+
all modes work now for margins or bleeds of different sizes
54+
resetMatrix() does not reset the canvas mode anymore
55+
* performance constants are called VISIBLE, HIDDEN and SILENT now and are used together with the new mode() function
56+
* rect() now allows additional parameters to add rounded corners
57+
* paragraphStyle(), characterStyle() and objectStyle() are expanded:
58+
They can now get an applied style from a text object/page item and can
59+
make use of an optional object with property name/value pairs to set
60+
the properties of the style.
61+
* inspect() has been completely reworked:
62+
Much faster, especially for complex objects.
63+
Nicer presentation of results (tree style).
64+
Options to show or hide properties, values and/or methods.
65+
Option to show only certain properties.
66+
Lots of minor fixes.
67+
* page(), pageNumber() and removePage() now also accept page name strings as parameters
68+
* pageCount() can now also be used to set the doc's page count
69+
* previousPage() and nextPage() now work as expected
70+
* when drawing closed vertex paths, endShape() instead of beginShape() now takes the
71+
CLOSE constant as argument
72+
* println() and print() can now print multiple parameters to console
73+
* trimWord() now correctly trims all punctuation from word borders
74+
* text() now respects the currently set rectangle mode
75+
* rectMode() now works with RADIUS
76+
* Improved the speed of clear() considerably
77+
* textFont() does no longer stop the script if a font is missing, but gives a console warning instead
78+
* isText() now correctly identifies collections of multiple text objects as text
79+
(Characters, Words, Lines etc.)
80+
* size() now can use existing page size presets as a parameter with an optional
81+
second parameter for page orientation (introducing PORTRAIT and LANDSCAPE)
82+
* duplicate() now duplicates page items reliably in place, even when in FACING canvas modes
83+
* selection() can now be used to set the selection
84+
* label() can now be used to assign a label to a page item
85+
* Updated categories and sub-categories of many functions to better align to Processing/p5.js categories
86+
or – in case of non-Processing functions – to better reflect the InDesign categories they belong to
87+
* Changed all include/includepath/targetengine statements from # to //@
88+
This allows linting with eslint of all files
89+
* Linted all the test files
90+
* Changed the location of the basil.js library from `~/Documents/basiljs/bundle/basil.js` to `~/Documents/basiljs/basil.js` in all the example files.
91+
The user is allowed to have his files wherever he wants.
92+
* bounds() now correctly measures bounds in different canvas modes(MARGIN/BLEED etc.)
93+
94+
- b.go() and b.loop() are removed (use function draw() or function loop() instead)
95+
- b.itemX(), b.itemY(), b.itemWidth(), b.itemHeight(), b.itemPosition() and b.itemSize() are removed
96+
and replaced by the new transform() function
97+
- b.transformImage() is removed as it can be replaced by the new transform function()
98+
- b.storyCount() is removed (use stories(doc()).length instead)
99+
- Array.map() and Array.filter() are removed
100+
- b.Random.nextGaussian() is removed
101+
102+
Special thanks to Hartmut Bohnacker for making the transform functions work in Processing style!
103+
104+
..- --.- ..- -.... -..-- .-..-. -.-..---.-.-....--.-- -....-.... -..-- .-
105+
basil.js 1.1.0 - 11 November 2016
106+
107+
+ Added b.size() to set and get the document size
108+
+ Added b.gradient() to great colourful gradients
109+
+ Added b.gradientMode() to set gradient type b.LINEAR or b.RADIAL
110+
+ Added b.placeholder() to fill a textFrame with random placeholder text
111+
+ Added b.LOREM constant holding a lorem ipsum string
112+
+ Added npm script for better tooling and development
113+
npm run watch
114+
npm run release (insert timestamp + version string in first line of bundle)
115+
npm run bundle (without timestamp + version string)
116+
+ Added .eslintrc file (linting rules) to reflect current coding style
117+
118+
* The basil.js file is bundled from /src to a single file:
119+
It is no longer required to have the basil.js file at a certain path.
120+
Break out with your project folders to any location w/o breaking things!
121+
* Entire source code is linted, wrong line breaks fixed
122+
* Source code reorganised to /src folder
123+
* Readme files updated to acknowledge new contributors
124+
125+
* Bugfix: b.color("colorName") error when using resulting color in b.fill() twice
126+
* Bugfix: b.layer() did not set active layer to given argument
127+
* Bugfix: b.image() error/warning handling if incomplete arguments
128+
* Bugfix: b.isText() did not work for instances of Text
129+
* Bugfix: b.words(), b.lines() etc. were broken
130+
* Bugfix: b.objectStyle(), b.characterStyle() and b.paragraphStyle() were broken
131+
132+
Shout outs to Timo Rychert and Fabian Morón Zirfas!
133+
This release is entirely based on your hard work!
134+
Many thanks for this massive contributions!
135+
136+
..- --.- ..- -.... -..-- .-..-. -.-..---.-.-....--.-- -....-.... -..-- .-
137+
basil.js 1.0.10 -
138+
139+
+ Added package.json definition
140+
* Changed versioning scheme to npm style
141+
142+
..- --.- ..- -.... -..-- .-..-. -.-..---.-.-....--.-- -....-.... -..-- .-
143+
basil.js 1.09 -
144+
145+
+ Added installer scripts for OS X and Windows
146+
* Added some better error reporting for null objects
147+
* Minor bug fixes
148+
149+
..- --.- ..- -.... -..-- .-..-. -.-..---.-.-....--.-- -....-.... -..-- .-
150+
basil.js 1.08 - 11 November 2013
151+
152+
+ Added b.arc() by Ken Frederick, cheers mate!
153+
+ Added b.weekday(), b.timestamp() and b.millisecond()
154+
* Fixed output to progress panel
155+
* Added auto save to MODEHIDDEN
156+
* Added 15s timeout to loadStrings via TCP/IP
157+
* Improved error reporting
158+
* Bugfix to b.addStory()
159+
* Changed default folder for b.download() to data/
160+
161+
..- --.- ..- -.... -..-- .-..-. -.-..---.-.-....--.-- -....-.... -..-- .-
162+
basil.js 1.07-experimental - 22 October 2013
163+
164+
* Fixed buggy b.noise()
165+
* Urgent bug fix to b.color() and others
166+
167+
..- --.- ..- -.... -..-- .-..-. -.-..---.-.-....--.-- -....-.... -..-- .-
168+
basil.js 1.06-experimental - 21 October 2013
169+
170+
* Internal refactorings (split basil.js into many includes)
171+
* Changed to FAST_ENTIRE_SCRIPT execution mode
172+
173+
Please note that this release is still experimental.
174+
175+
..- --.- ..- -.... -..-- .-..-. -.-..---.-.-....--.-- -....-.... -..-- .-
176+
basil.js 1.05 - 9 October 2013
177+
178+
* Bugfix to b.endShape()
179+
* Bugfix to b.loadString() and b.download(),
180+
now supports more than one GET parameter
181+
* changed default anchor to center for transforms with line()
182+
* internal safety improvements
183+
184+
..- --.- ..- -.... -..-- .-..-. -.-..---.-.-....--.-- -....-.... -..-- .-
185+
basil.js 1.04 - 23 September 2013
186+
+ added b.addShape() in order to create multi-component shapes with b.vertex();
187+
188+
+ added b.nameOnPage(), get a pageitem on the active page by name.
189+
see examples/document/nameOnPage.jsx
190+
191+
+ added b.download(). Downloads an URL to a file, currently Mac only.
192+
see examples/output/download.jsx
193+
194+
+ added b.shellExecute(), currently Mac only.
195+
see examples/input/shellExecute.jsx
196+
197+
+ added b.group() and b.ungroup()
198+
+ added b.isURL() validator checker function
199+
+ added string helpers b.endsWith() and b.startsWith()
200+
+ added b.projectPath() to get the folder of the active document
201+
+ added b.saveString() to save a singe string to a file
202+
203+
* Extended loadString() and loadStrings() to handle URLs. Happy GET URL!
204+
see examples/input/loadStringURL.jsx
205+
206+
* all export functions can handle now sub-folders
207+
e.g. exportPNG("swiss/basel/snap.png")
208+
209+
210+
..- --.- ..- -.... -..-- .-..-. -.-..---.-.-....--.-- -....-.... -..-- .-
211+
basil.js 1.03 - 3 July 2013
212+
* added missing support for layer and stroke settings to b.image()
213+
+ added b.savePNG()
214+
215+
216+
..- --.- ..- -.... -..-- .-..-. -.-..---.-.-....--.-- -....-.... -..-- .-
217+
basil.js 1.02 - 3 June 2013
218+
219+
* fixed a bug with b.constrain()
220+
* added constraints for b.color() and b.fill(), where illegal channel
221+
values would previously produce strange results
222+
223+
224+
..- --.- ..- -.... -..-- .-..-. -.-..---.-.-....--.-- -....-.... -..-- .-
225+
basil.js 1.01 - 23 May 2013
226+
227+
+ added b.transform() and b.matrix()
228+
+ added b.remove() for the removal of objects
229+
+ added b.duplicate() for duplicating page items and pages
230+
+ added b.label() and b.selection() as single item alternatives
231+
+ added demos to examples folder
232+
* changed default image fit behaviour to FitOptions.FILL_PROPORTIONALLY
233+
* corrected credits for the processing.js team
234+
* Several JSDOC updates and updated reference on website
235+
236+
237+
..- --.- ..- -.... -..-- .-..-. -.-..---.-.-....--.-- -....-.... -..-- .-
238+
basil.js 1.00 - 28 Feb 2013
239+
240+
First public release!
241+
242+
+ new functions to work conveniently with stories (indesign model of linked
243+
content or many textframes), e.g. b.addToStory(), b.storyCount() ...
244+
see: examples/document/story.jsx
245+
246+
247+
..- --.- ..- -.... -..-- .-..-. -.-..---.-.-....--.-- -....-.... -..-- .-
248+
basil.js 0.22 - 25 Feb 2013
249+
250+
+ new computation modes MODESILENT, MODEHIDDEN, MODEVISIBLE.
251+
HIDDEN is very handy for working with large files, as the document is
252+
processed completely in background, performance is a lot better.
253+
254+
* Changes for b.go().
255+
You can switch between the computation modes via b.go( b.MODESILENT ),
256+
b.go( b.MODEHIDDEN ) and b.go( b.MODEVISIBLE ). If b.go() is called
257+
without a paramter, then the default mode MODESILENT is used.
258+
259+
Special thanks to be:screen GmbH for the new computation modes and
260+
performance optimization!
261+
262+
+ new functions for creating shapes. you can create arbitrary lines,
263+
bezier curves, polygones with beginShape(), endShape() and vertex()
264+
265+
266+
..- --.- ..- -.... -..-- .-..-. -.-..---.-.-....--.-- -....-.... -..-- .-
267+
basil.js 0.21 - 21 Dec 2012
268+
269+
basil.js goes semi public with a private beta release
270+
271+
272+
..- --.- ..- -.... -..-- .-..-. -.-..---.-.-....--.-- -....-.... -..-- .-
273+
basil.js pre 0.21 - May to Dec 2012
274+
275+
basil.js is developed over the Summer by Ted Davis, Benedikt Groß,
276+
Stefan Landsbek and Ludwig Zeller.
277+
278+
Special thanks to Stefan Landsbek for the inital code architecture!
279+
280+

0 commit comments

Comments
 (0)