XOYZ69 / yoshida

A card making tool designed to handle the most specific requests.
Other
1 stars 0 forks source link

Polygon's sequences should be able to use the Yoshida language #17

Closed XOYZ69 closed 1 year ago

XOYZ69 commented 1 year ago

Is your feature request related to a problem? Please describe.

The new polygon feature is pretty simple an is hard to master. Since you need to be pixel perfect to stylize a good polygon.

Describe the solution you'd like The Yoshida language is pretty advanced to get things done in your way. Probably the easiest way to use the format_value function for arrays would be to iterate through them.

An example for this would be this:

cache_dict = {}
count = 0
for entry in array:
    cache_dict['array_index:' + str(count)] = entry
    count += 1

cache_dict = format_value(cache_dict, returner = true)

cache_array = []

for entry in cache_dict:
    cache_array.append(cache_dict[entry])

This is just a 2 minute solution and may not work in the current state of Yoshida and may even require to finally advance Yoshidas version to anther level if there is not any compatability going down.

Describe alternatives you've considered

There are pretty much no alternatives to this, since otherwise you need to calculate the pixels yourself.

Additional context

-

XOYZ69 commented 1 year ago

The general function should be implemented. This issue will stay open to test the functionality of this feature