30.11.2020: Updated with the new patchseries and instructions for Windows
02.12.2020: Added tweaks
08.12.2020: Updated with patchseries v4
31.01.2020: Updated with patchseries v6
#include <X11/Xlib.h> | |
#include <X11/Xutil.h> | |
#include <X11/Xos.h> | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <locale.h> | |
#include <assert.h> | |
Display *dpy; | |
Window win; |
Install the following packages
xserver-xorg-core
(server)xserver-xorg-video-XXX
(video driver, XXX depends on your hardware)xserver-xorg-input-XXX
(input device driver, XXX depends on your hardware. evdev
works well for most cases)x11-xserver-utils
(xmodmap
, xrandr
)x11-xkb-utils
(setxkbmap
)x11-utils
(xdpyinfo
, xev
, xkill
, xprop
, xwininfo
)""" | |
Triangluation simulator. | |
Left mouse button: place a vertex. | |
Right mouse button: finalize a shape. | |
T: triangulate shapes. | |
""" | |
import math | |
from random import randint |
;source: http://norvig.com/paip/interp1.lisp | |
;;; -*- Mode: Lisp; Syntax: Common-Lisp; -*- | |
;;; Code from Paradigms of Artificial Intelligence Programming | |
;;; Copyright (c) 1991 Peter Norvig | |
;;; File interp1.lisp: simple Scheme interpreter, including macro.sgi | |
(defun interp (x &optional env) | |
"Interpret (evaluate) the expression x in the environment env." |