Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spark 3D #4

Open
wpasieka opened this issue Mar 17, 2020 · 0 comments
Open

Spark 3D #4

wpasieka opened this issue Mar 17, 2020 · 0 comments

Comments

@wpasieka
Copy link

Hello : ),

I am wondering how to write a drawings like these ones in Spark:
http://aa-project.sourceforge.net/gallery/

The question comes from an observation that the quality of the ascii in REPL seems to be much better than in this online Art. So we could draw a better pictures in REPL.

And how could we achieve the 3D impressions in Spark/REPL?

https://www.reddit.com/r/programming/comments/2v7e6a/rendering_3d_scenes_as_ascii_art_in_a_command/

;;---------

I am trying to write some package which ommitts the X-Windows or the CLX.

The 2D format works, I have but started considering writing the 3D format:

(login: oms pass: oms) - scan at the bottom.
https://www.pressiton.com/ines3/?module=press_xai_voting

The function on the scan is simple:

 (DEFUN draw-analysis ()
  (LET* ( (*print-right-margin* 1000))
;;(DO ((z 0 (+ 1 z))) ((> z *depth*))   (PROGN (FRESH-LINE) ;; (PRINC "/")
  (DO ((y 0 (+ 1 y))) ((> y *height*))  (PROGN (FRESH-LINE)  (PRINC "|")
  (DO ((x 0 (+ 1 x))) ((> x *width*))   (PRINC (COND ((SOME (LAMBDA (animal)
                                                   (AND (= (animal-x animal) x)
                                                        (= (animal-y animal) y)
                                                     ;; (= (animal-y animal) z)
                                                        ))   *animals*)    #\M)
                                                     ((GETHASH (CONS x y) *plants*) #\*)
                                                      (t #\SPACE))))  (PRINC "|")))  ));;DEFUNx

The z-axis is turned off, because I don't know how to see a "depth" in REPL.

;;-----------

Maybe You could advise how to make the 3D format in Spark or generally in REPL?
Thank You.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant