[standard-fish] Lightsabers!
Justin Zamora <justin-bqg12Z/[email protected]>
| Newsgroups | gmane.comp.lang.racket.user,gmane.lisp.scheme.plt |
|---|---|
| Message-ID | <CA+80D0WkdQR0ExV0zZU2XGBj9ifGmaewLTi7utk2fqMJkUdNew@mail.gmail.com> |
[Apologies if this gets sent twice. I accidentally sent the first one to the googlegroups email address] Stephen De Gabrielle announced this a few days ago on racket-dev, so I spent my weekend embracing my inner Star Wars nerd and made lightsabers in Racket. I had never used the pict library before, so it was also an interesting learning experience. I created a lightsaber function that produces a pict of a lightsaber. The only required argument is a color, which can be either a color name or a color% object. A length can be provided as an optional argument, as well as a style for the lightsaber hilt. The default hilt is Luke Skywalker's (#:style 'luke), but you can also select Darth Vader's (#:style 'vader), Kylo Ren's (#:style 'kylo), or Darth Maul's (#:style 'maul). See the attached picture for examples of each. The code is available at https://github.com/zamora/lightsaber Thanks to Stephen De Gabrielle for providing the incentive to learn about pict and have some fun! Justin -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected] To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/CA%2B80D0WkdQR0ExV0zZU2XGBj9ifGmaewLTi7utk2fqMJkUdNew%40mail.gmail.com.
racket-lightsaber.png
(image/png, 91.4 KB) - not displayed