[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Color in MCL
- To: info-mcl@digitool.com
- Subject: Color in MCL
- From: Dieter Holz <dieter@ifi.wwz.unibas.ch>
- Date: 18 May 95 15:32:20 MET
- Organization: University of Basel
- Sender: owner-info-mcl@digitool.com
Hi,
I want to draw some colored lines in a MCL window in :PatXor Mode, but I
get only black lines.
That is what I've tried:
(defclass color-test (window)
()
(:default-initargs
:color-p t))
(defmethod view-draw-contents :after ((self color-test))
(with-port (wptr self)
(with-fore-color *red-color*
(#_PenSize 3 3)
(#_PenMode (ccl::mode-arg :PatXor)) ; it's black :-(
; (#_PenMode (ccl::mode-arg :PatCopy)) ; it's red :-)
,but I need Xor-Mode :-(
(#_MoveTo 10 10)
(#_Line 50 50))))
(make-instance 'color-test)
Any hints?
Dieter