-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtest.lisp
65 lines (55 loc) · 1.37 KB
/
test.lisp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#+nil
(ql:quickload :mgl-pax)
;;(ql:quickload "split-sequence")
(eval-when (:execute :load-toplevel :compile-toplevel)
(setf asdf:*central-registry*
'(*default-pathname-defaults*
#p"/home/martin/stage/cl-pure-x11/"))
(asdf:load-system "pure-x11"))
(defpackage :g (:use :cl :pure-x11))
(in-package :g)
#+nil
(with-open-file (s "/home/martin/stage/cl-pure-x11/README.md"
:direction :output
:if-exists :supersede
:if-does-not-exist :create)
(mgl-pax:document @pure-x11-manual :stream s :format :markdown))
#+nil
(let*((w 512)
(h 512)
(c 4)
(a (make-array (list h w c)
:element-type '(unsigned-byte 8))))
(dotimes (j h)
(dotimes (i w)
(setf (aref a j i 0) (mod i 255) ;; b
(aref a j i 1) (mod j 255) ;; g
(aref a j i 2) 255 ;; r
(aref a j i 3) 255))) ;; a
(put-image-big-req a))
#+nil
(progn
(connect :port 6000)
(make-window)
(draw-window 0 0 100 100))
#+nil
(query-pointer)
#+nil
(draw-window 0 0 100 100)
#+nil
(read-reply)
#+nil
(progn
(defparameter *my-resp* nil)
(sb-thread:make-thread #'(lambda ()
(setf *my-resp* (list (get-universal-time)
(multiple-value-list (read-reply-wait)))))
:name "bla"))
#+nil
(array-dimensions (second *my-resp*))
#+nil
(time
(dotimes (i 100000)
(draw-window (random 300) (random 300) (random 200) (random 300))))
#+nil
(query-pointer)