Skip to content

Instantly share code, notes, and snippets.

@gabrieldp
gabrieldp / raylib_multiwindow_example.py
Created January 14, 2024 23:00
raylib - pyray multiple rendering windows example
import pyray
from raylib.colors import (
RAYWHITE,
DARKGRAY,
MAROON,
)
from multiprocessing import Process
def launch_window(title):
@gabrieldp
gabrieldp / range_slider.py
Last active July 27, 2024 13:41
wxPython Custom Range Slider Widget
import wx
def fraction_to_value(fraction, min_value, max_value):
return (max_value - min_value) * fraction + min_value
def value_to_fraction(value, min_value, max_value):
return float(value - min_value) / (max_value - min_value)