[Cs254f11] Making simple graphics

Lee Spector lspector at hampshire.edu
Sun Oct 16 18:45:12 EDT 2011


Hi Max,

One approach is to do what I did in clojinc -- search in the clojinc file for:

;; simple graphics -- but not as simple as I'd like

and the code following that will show you one way of drawing shapes in a graphics window. It's kind of a lame way to do it, for a couple of reasons, but it has the virtues of requiring no extra libraries and being relatively concise (but not quite as concise as I would like). Still, it might do what you need.

Much nicer and more sophisticated graphics can be created using the clj-processing library. I think I demoed that very briefly earlier in the semester, but I'd be happy to do so again some time (maybe even tomorrow... I'm still mulling a couple of different options for tomorrow's class).

 -lee



On Oct 16, 2011, at 5:22 PM, Maxwell William Fair Levit wrote:

> Hey all.
> 
> I've never played around much with gui's of any sort, and as a result, I need
> some assistance.
> 
> I want to be able to display the board on which my Go pieces will sit, along
> with said pieces.
> 
> I really don't know where to begin with this, so any particularly good resources
> or tips anyone can recommend would be fantastic.
> 
> I'm not trying to do anything fancy, I just want a visual representation of my
> board.
> 
> Thanks,
> 
> -Max
> 
> _______________________________________________
> Cs254f11 mailing list
> Cs254f11 at lists.hampshire.edu
> https://lists.hampshire.edu/mailman/listinfo/cs254f11

--
Lee Spector, Professor of Computer Science
Cognitive Science, Hampshire College
893 West Street, Amherst, MA 01002-3359
lspector at hampshire.edu, http://hampshire.edu/lspector/
Phone: 413-559-5352, Fax: 413-559-5438



More information about the Cs254f11 mailing list