diff options
author | Ekaitz Zarraga <ekaitz@elenq.tech> | 2025-01-10 19:09:43 +0100 |
---|---|---|
committer | Ekaitz Zarraga <ekaitz@elenq.tech> | 2025-01-10 19:09:43 +0100 |
commit | 404e54097b37d94382d74a4eeff039d7bdb02e8b (patch) | |
tree | b5439f91af911dbd18d8e3faf034b3657910318c /logo | |
parent | 2d491a7348565497b6af39055bf0fcfe669cbfb9 (diff) |
logo: scheme: accept any name
Diffstat (limited to 'logo')
-rw-r--r-- | logo/elenq.scm | 58 |
1 files changed, 26 insertions, 32 deletions
diff --git a/logo/elenq.scm b/logo/elenq.scm index c3ec13d..e8bd947 100644 --- a/logo/elenq.scm +++ b/logo/elenq.scm @@ -6,37 +6,31 @@ (number->string (exact->inexact x))) (define (elenq-logo sub size rotation-deg) - `(svg - (@ (width ,(num (* size))) - (height ,(num (* size (/ 10 22)))) - (viewBox ,(string-join (list (num (* size 22 -1/2)) - (num (+ (* -1.4 size) (* size 10 -1/2))) - (num (* size 22)) - (num (* size 10))) - " "))) - (g (@ (id "elenq-logo") - (transform - ,(string-append - "scale(" (num size) ")" - "rotate (" (num rotation-deg) ")"))) - (g (@ (transform "scale(0.33333)")) - (text (@ (x 0) - (y 0) - (style "font-size: 30; line-height: 1.25; font-family: armata; stroke: none; text-anchor: middle")) - "ElenQ") - (text (@ (x 0) - (y 8) - (style "font-size: 10; line-height: 1.25; font-family: armata; stroke: none; text-anchor: middle;")) - ,sub))))) - -(define (elenq-technology size rotation) - (sxml->xml (elenq-logo "TECHNOLOGY" size rotation))) -(define (elenq-publishing size rotation) - (sxml->xml (elenq-logo "PUBLISHING" size rotation))) + (sxml->xml + `(svg + (@ (width ,(num (* size))) + (height ,(num (* size (/ 10 22)))) + (viewBox ,(string-join (list (num (* size 22 -1/2)) + (num (+ (* -1.4 size) (* size 10 -1/2))) + (num (* size 22)) + (num (* size 10))) + " "))) + (g (@ (id "elenq-logo") + (transform + ,(string-append + "scale(" (num size) ")" + "rotate (" (num rotation-deg) ")"))) + (g (@ (transform "scale(0.33333)")) + (text (@ (x 0) + (y 0) + (style "font-size: 30; line-height: 1.25; font-family: armata; stroke: none; text-anchor: middle")) + "ElenQ") + (text (@ (x 0) + (y 8) + (style "font-size: 10; line-height: 1.25; font-family: armata; stroke: none; text-anchor: middle;")) + ,sub)))))) (match (command-line) - ((name "tech") (elenq-technology 100 0)) - ((name "pub") (elenq-publishing 100 0)) - ((name . any) (format (current-error-port) - "USAGE: ~a tech|pub\n" name) - (exit 1))) + ((name text) (elenq-logo (string-upcase text) 100 0)) + (_ (format (current-error-port) "USAGE: elenq.scm NAME\n" ) + (exit 1))) |