2017년 6월 8일 목요일

Trying to create flipbook


I have created a modified Paint Pot app with a TinyDB component.  My goal is to be able to make a flipbook out of the pictures I create and save, where the drawings that have been created (that I have labeled based on a "pages" variable) can play in order.  I am stuck trying to save the pictures sequentially, and then playing them.  

--
what have you tried? when you say that you are stuck, is there any particular step that is not working as you thought it would?

--
one way is to number the database tags sequentially and call the images by number?   

If you need to sort the images before displaying, there was an algorithm showing how to sort numbers   called Help Sorting a List of Numbers  posted a few days ago.  Help Sorting a List of Numbers        The code might help you 
sort your page numbers, but only if they are numbers    and not  in the form Page 1 , Page2 etc.     Even in that instance, they could be sorted by using a Text block to remove the word Page.

Is this the hint you need to continue with your project?

--
Doesn't the Save Canvas block accept an input string with the file name where you want the save?
You can build up a file name with a number at the end, if you remember to pad the number with leading zeroes.
Use the Join block.

To pad with leading zeroes, add 1000000 to your number, assign it into a string variable, and cut off the leading "1"
using a segment block.


--

댓글 없음:

댓글 쓰기