What's a simple way to do simple 2D graphics on OSX?
Simple, as in "10 HGR2: HPLOT ...", not 'simple' as in 600-line framework wrappers &| D0InG 1T tH3 CyB3RsPaC3 W@Y dRaGgInG 3D gUi W1Dg3tS aR0U|\|D iN @N INt3rFaC3 BuIlD3R.
Suggestions using the supplied interpreted languages are fine (Perl, Python, etc.)
Name:
Anonymous2005-04-30 8:56
>>1
I don't really know but the difficult approach would be to subclass some view in Objective-C and write your own parser with something like Lex/Yacc... I wouldn't do this unless I had to integrate it in a real program.
You can install gnuplot instead (very easy to use) and learn how to use it to generate pictures from your functions. This or the Perl/Python approach is of course independant on the system you are using, but I guess the Perl/Python way would require the use of a wrapper, it would not be immediate if you are using raw data or mathematical functions. I'd rather go with gnuplot (or Mathlab or Maple if you have these at home).
Name:
Anonymous2005-04-30 16:09 (sage)
>>2
If I wanted to go that route, I'd be using Graphing Calculator..
Name:
Anonymous2005-04-30 16:39 (sage)
>>3
From your original post, you want to take the route "10 HGR2: HPLOT0InG 1T tH3 CyB3RsPaC3 W@Y dRaGgInG 3D gUi W1Dg3tS aR0U|\|D iN @N INt3rFaC3 BuIlD3R.", not very precise for a question!
A ! ((B XOR C) | (B & C)) ... English usually implies the 'exclusive or' operation (this "or" that) rather than the logical op.
('logical' grammar is one of the reasons why most Engineers' writing is a pain to read for non-Engineers..)
Name:
12005-05-08 21:52
I found an answer to my problem: libSDL.
The coding for it is relatively straight-forward, and I've used it before on Linux. Got it installed via DarwinPorts.
Name:
Anonymous2005-05-12 20:01
Strictly, English doesn't "usually" imply the exclusive or. There are two or constructs:
The first: A or B
The second: Either A or B
The first implies a standard boolean or. The second implies an exclusive or. Unfortunately for those who don't enjor ambiguity in the language, the word "either" is significantly underused.
Name:
Edward2005-05-14 7:19
>>7
I agree, but you'll find that commonly, either is not used and 'or' usually means 'xor'. But you're right: the language supplies us with a way to evade ambiguity. It's just that today's english, spoken by today's english-speakers, doesn't make use of it.
Name:
Anonymous2005-05-14 10:15
>>6
Don't forget OpenGL. Yes, even for 2D graphics OpenGL is a great library. It's fast and you have built-in support for camera and light. Of course you'll have to learn it before and it's not very intuitive to use all those matrices instead of pixels but once you know how to use it, you'll be in heaven.
Name:
Anonymous2005-05-14 20:01
OpenGL is a poor fit for 2D. Certainly, you can use it, but you'd have to write a framework from scratch, just to do what most 2D frameworks already do. There's also significant overhead since 3D is meant for polygons, not pushing sprites or pixels.
Name:
Anonymous2005-05-15 3:57
>>7
"A or B" doesn't really imply in English that "A and B together" is an acceptible choice (like the logical operation). "You can have ice-cream or the mud-cake."
Name:
Anonymous2005-05-15 5:42
>>11
That sentence should be "You can have either the ice-cream or the mud-cake." to be grammatically correct.
Name:
Anonymous2006-04-05 12:22
>>1
Just FYI, IB has nothing to do with "simple 2D graphics". The basic 2D API for OS X is Quartz 2D, aka Core Graphics.
[m][sup] eS u s s hm To r n a da Ton dm y neh[o][u][i]w[/o][/u][/i]oS Aht[o][u][i]a[/o][/u][/i]fa ti “ [o][u][i]n[/o][/u][/i]i w![o][u][i]d[/o][/u][/i]Bd B eE " rD O CI u j n o c [/sup][/m]
>>31
That's a guy who spent 30 minutes testing some BBCode art. Easily an hour of work for a single useless post. I have much respect for that dedication and I love when necrobumps reveal the saged drafts.