Add bytes to readme

This commit is contained in:
blackle 2019-04-02 00:53:02 -04:00
parent 9e4302bdd4
commit e692a1e447
1 changed files with 2 additions and 2 deletions

View File

@ -2,10 +2,10 @@
Some code examples for opening windows for various purposes in very few bytes.
## gtk-opengl
## gtk-opengl - 1585 bytes
Example code for opening a glsl shader fullscreen with gtk. Closes with the standard alt+f4 on Ubuntu. Shaders get passed an iTime uniform in seconds. App closes automatically after 10 seconds.
## gtk-webkit
## gtk-webkit - 1074 bytes
Example code for opening an html page fullscreen with gtk. Closes with the standard alt+f4 on Ubuntu. WebGL is enabled however is not used in the example. Testing with webkit gtk has found that most(?) shadertoy shaders seem to work. It has yet to be seen if initializing a shader in javascript takes fewer bytes than with gtk's opengl code.