@monomonnik Once again, thank you very much, I will read about Vanilla.
shespoke2me
@shespoke2me
Best posts made by shespoke2me
Latest posts made by shespoke2me
-
RE: UI questions
-
UI questions
Hi there !
I'm currently writing a small scprit to quickly test fonts in pages.
The parameters are: the name of the font, the size, and the width of the column. (and eventually the number of columns in the page)
For now I have a script that works, but I would like to add some UI, to make it easier to use.
I've looked around, in the documentation and on the forum, and I have a few issues:
What are all the types of UI that we can manipulate in drawbot, and what are the parameters to create one, and to get the input back?
also, is it possible to use tkinter, since i found out that it is the most powerful UI tool in python, or is it useless?
thanks in advance! -
RE: Need help: Dynamic text animation
@monomonnik said in Need help: Dynamic text animation:
Thank you man! Helped a lot
-
Need help: Dynamic text animation
Ok so my problem is:
I would like to make an animation based of an animation I already have.
So i made this small gif,
and here is the code.import random w = 1920 h = 1080 rows = 7 cols = 13 range_ = 20 fs = 60 duration = .4 for frame in range(range_): newPage(w, h) frameDuration(duration) fontSize(fs) for currentCol in range(cols): dotSize = w /(cols + (cols+1)) x = dotSize + currentCol*(dotSize + dotSize) for currentRow in range(rows): y = dotSize + currentRow*(dotSize + dotSize) if random.random() > 0.5: fill(0.9, 0, 1) textBox('É', (x, y, dotSize, dotSize)) else: fill(0.1, 0, 1) textBox('e', (x, y, dotSize, dotSize)) # saveImage('/Desktop/Grid_letters_3.gif')
Anyway it gave me an idea of making another animation based of this one, but where the letters don't switch randomly, but where text is coming from left to right, with some "ascii" letters, something like this. (but instead of orange dots, purple letters, and the blue letters are the "background")
I hope I have made myself clear, sorry if I have not.
I'm writing this post bc I have absolutely no idea of how I could make this work, so I'm throwing a bottle into the sea.
Thanks in advance!