`reverse` gives strange results
See original GitHub issueWhen using r=1
inside of a Style()
method
@animation((1080, 540), timeline=50, bg=hsl(0.6))
def wave(f):
return (Glyphwise("COLDTYPE", lambda g:
Style(Font.ColdtypeObviously(), 200,
wdth=f.adj(-g.i*3).e("seio", 1), r=1))
.align(f.a.r)
.f(1))
(Same as your sample code, but with the r=1
added)
Result:
https://user-images.githubusercontent.com/5824595/139033046-531404fb-4505-4f95-97fa-e861ffb87b66.mp4
I tried with different fonts, but that does not change anything
.reversePens()
as a method call on the Style()
however seems to work
@animation((1080, 540), timeline=50, bg=hsl(0.6))
def wave(f):
return (Glyphwise("COLDTYPE", lambda g:
Style(Font.ColdtypeObviously(), 200,
wdth=f.adj(-g.i*3).e("seio", 1),
tu=-100,
))
.align(f.a.r)
.reversePens()
.ro()
.fssw(0, 1, 1)
)
Issue Analytics
- State:
- Created 2 years ago
- Comments:6
Top Results From Across the Web
C reverse string function getting weird output - Stack Overflow
C reverse string function getting weird output · 1. Once the strlen() problem is fixed, stackoverflow.com/questions/25603908/… is another reverse ...
Read more >Hi.. I tried the .reverse() method but it always returns ==> None ...
reverse() uses in place modification, what this means is that the method does not return a new object and instead modifies the already...
Read more >Reverse Culture Shock - Study Abroad - Marquette University
Reverse culture shock, or re-entry, is simply a common reaction to returning home from studying abroad. It is an emotional and psychological stage...
Read more >Multiplication of tranformation matrices gives strange result
The results I have gotten is strange, and when I reverse the order of the permutation-matrices the results are the SAME, and really...
Read more >Why does a mirror reflect an image with only left/right reversal ...
A mirror doesn't reverse left to right either as you will see with an asymmetric object. Imagine the mirror is one ... You...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
You know, now that you bring it up, I have been finding it annoying lately to type so many _ characters, just from an ergonomic perspective on US keyboards, and _'s add more chars to a give line, and also yeah DrawBot is pretty strictly camelCase… maybe I’ve had a change of heart!
The good news is pretty much everything in coldtype is meant to be short, so actually lots of method names try to be a single word (if not a single character). Will keep thinking on this!
Cool! Went ahead and added that exception, will be included in the next release (0.7.6)
.reversePens()
and.reverse_pens()
(and.rp()
) all work (aliases to a single function) — early on in Coldtype I was following a camelCase style but have been moving to the snake_case style since that’s the PEP8 style, so it’s a little bit of a mess but wanted to keep some camelCase things in there for backwards-compatibility. Will come out before a 1.0 release, but should be all good for now to use the camelCase version