Skip to content

Instantly share code, notes, and snippets.

@yvm
yvm / clx-clos.lisp
Last active January 8, 2021 18:16
trying to CLOS-wrap CLX
#| -*- mode:lisp -*-
CLOS wrapper for CLX
|#
(eval-when (:compile-toplevel :load-toplevel :execute)
(require :quicklisp)
(quicklisp:quickload '("clx" "uiop")))
(defpackage #:clx-clos
(:documentation "")
@yvm
yvm / midpoint.lisp
Created December 15, 2019 23:08
How to draw a circle with midpoint algorithm
(eval-when (:compile-toplevel :load-toplevel :execute)
(require :quicklisp)
(quicklisp:quickload "clx"))
(defpackage #:midpoint
(:documentation "Midpoint algorithm for circle rendering example")
(:use #:common-lisp #:xlib)
(:export #:run))
(in-package #:midpoint)
@yvm
yvm / bubbles.lisp
Created March 15, 2019 15:18
Simple CLX-based 3D demo
(eval-when (:compile-toplevel :load-toplevel :execute)
(require :quicklisp)
(quicklisp:quickload "clx")
(quicklisp:quickload "bt-semaphore"))
(defpackage #:clx-3d-bubbles
(:documentation "3D points demo")
(:use #:common-lisp #:xlib)
(:nicknames #:bubbles)
(:export #:bubbles))