generated from cawa-93/vite-electron-builder
-
-
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.
- Loading branch information
Showing
2 changed files
with
54 additions
and
2 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
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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
Bitfolio | ||
======== | ||
|
||
Put files in this directory to view them in Bitfolio. | ||
|
||
Supported file types: | ||
|
||
- Images: .jpg, .jpeg, .png, .gif | ||
- Video: .mp4, .webm, .mov | ||
- Webpages: .html | ||
- Fragment shaders: .glsl | ||
|
||
Filename tags | ||
------------- | ||
|
||
To customize the display of a file, you can add tags to the filename. | ||
|
||
- *Duration*: to set a file duration to 10 seconds, add `.10s.` to the | ||
filename. e.g. `myvideo.10s.mp4`. If a duration is specified for a video, | ||
it will loop for the duration. | ||
|
||
- *Conform*: to specify the scale mode of a file, you can add `.fill.`, | ||
`.fit.` or `.1-1.` to the filename. e.g. `myimage.fill.jpg`. The | ||
default is `fill`. | ||
|
||
Shaders | ||
------- | ||
|
||
Shaders can be written in [Tinyshader] format. There is one extra option - you | ||
can specify the resolution of the shader using a comment at the start of the | ||
file. | ||
|
||
Here's an example: | ||
|
||
*sample.glsl* | ||
``` | ||
// {"resolution": 80} | ||
t*=0.2; | ||
color = vec3( | ||
sin(x+t), | ||
sawtooth(x*y+t), | ||
triangle(x*r+t) | ||
); | ||
``` | ||
|
||
[Tinyshader]: https://tinyshader.com |