[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Color QuickDraw in MCL 2.0
- To: info-mcl@ministry.cambridge.apple.com
- Subject: Color QuickDraw in MCL 2.0
- From: Lin@news.cambridge.apple.com, Chien Chang <cs8110@twin1.src.ncu.edu.tw>
- Date: Mon, 18 Oct 1993 06:58:12 GMT
- Newsgroups: comp.lang.lisp.mcl
- Organization: SoftWare Research Center
- Sender: news@sparc4.ncu.edu.tw
I have tried to make an instance of CWindow with the following
expressions:
(setq a (make-instance
and this should create a color window, but when I tried to draw a
rectangle on the window, it didn`t work and just draw a black rectangle,
can any body tell me why?
The testing code is as follows:
(rlet ((testcolor :RGBColor :red 1000 :green 1000 :blue 1000)
(r :rect :top 0 :left 0 :right 100 :bottom 100))
(with-focused-view a
(#_rgbforecolor testcolor)
(#_paintrect r)))