A real-time digital clock with large figlet-style digits that updates every frame.
# Clear the screen
fgClear()
# Get current time
var hour = getHour()| # **************************************************************************************** | |
| # | |
| # raylib [core] example - 2D camera platformer | |
| # | |
| # This example has been created using raylib 2.5 (www.raylib.com) | |
| # raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details) | |
| # | |
| # Example contributed by arvyy (@arvyy) and reviewed by Ramon Santamaria (@raysan5) | |
| # | |
| # Copyright (c) 2019 arvyy (@arvyy) |
| # **************************************************************************************** | |
| # | |
| # raylib [audio] example - Raw audio streaming | |
| # | |
| # Example originally created with raylib 1.6, last time updated with raylib 4.2 | |
| # | |
| # Example created by Ramon Santamaria (@raysan5) and reviewed by James Hofmann (@triplefox) | |
| # | |
| # Example licensed under an unmodified zlib/libpng license, which is an OSI-certified, | |
| # BSD-like license that allows static linking with closed source software |
| ## Simple animated raylib example in Nim using naylib | |
| const | |
| ScreenWidth = 800 | |
| ScreenHeight = 450 | |
| type | |
| Ball = object | |
| position: Vector2 | |
| velocity: Vector2 | |
| radius: float32 |
| initWindow(800, 450, "Hello from Gist!") | |
| setTargetFPS(60) | |
| while not windowShouldClose(): | |
| beginDrawing() | |
| drawFPS(10, 10) | |
| endDrawing() | |
| closeWindow() |
A sophisticated Matrix-inspired digital rain effect with glitch effects, variable speeds, and erasers.
| -- snow.lua - Realistic snow effect module for Storie | |
| -- Can be embedded in any Markdown content with: | |
| -- ```lua module:snow | |
| -- [paste this file content] | |
| -- ``` | |
| local Snow = {} | |
| -- Configuration | |
| local SNOW_COUNT = 50 |