Value | Color |
---|---|
\e[0;30m | Black |
\e[0;31m | Red |
\e[0;32m | Green |
\e[0;33m | Yellow |
\e[0;34m | Blue |
\e[0;35m | Purple |
This file contains hidden or 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
// Smooth resizing on X11 using the XSync extension API. | |
// | |
// Note: Andrew Harter is dedicating a lot of work into making a solid, well-tested, | |
// thorougly documented example of a native X11+EGL window with custom decorations, | |
// and he notably helped me understand how XSync works which is how this gist got here. | |
// | |
// This is confirmed to work mostly as expected on KDE, remains to be tested for other DEs and WMs using X11. | |
This file contains hidden or 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
#![allow(unused)] | |
#[cfg(any(target_os = "linux", target_os = "macos"))] | |
mod unix { | |
use std::{ | |
ffi::{c_int, c_long, c_void}, | |
ptr, | |
}; | |
const PROT_NONE: c_int = 0; |
This file contains hidden or 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
# Example created by Speykious | |
add_library('fisica') | |
world = FWorld() | |
def setup(): | |
size(1000, 600) | |
smooth() | |
frameRate(60) | |
Fisica.init(this) |