#πŸ”’ Roulette Table GIF

19 messages Β· Page 1 of 1 (latest)

hollow orchid
#

Hey,

I've tried and tried for ages to make a GIF for a Roulette wheel with Chat GPT-4 as im not particularly experience with PIL.

Im having a lot of problems calculating the pocket the ball lands in when spinning both the table and the ball independently.

Anyone here ever made one of these gifs, or know an API that can generate them?

Heres the code ChatGPT made and the resultant GIF.

https://pastebin.com/dBfVAnmN

wicked cloakBOT
#

@hollow orchid

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

lofty lark
#

Does this code not work? What pocket does it give you?

hollow orchid
#

This code just spins the ball on a static table

lofty lark
hollow orchid
lofty lark
hollow orchid
hidden tide
#

rotating an image is the very first example in the docs

hollow orchid
hidden tide
#

if you know how much the image is rotated, and how many degrees each section of the wheel takes up, you should be able to calculate it

hollow orchid
#

Maybe the maths was just off after it being spun

hidden tide
#

You aren't calculating anything with physics. You should know the result before the wheel even stops spinning

wicked cloakBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.