Total beginner questions

Hi Community,

I just started learning Kotlin andhave the following questions:

  1. How to express geometric progression in Kotlin. For example I want to draw vertical lines with the distance between them increasing in geometric progression.

  2. How to draw lines that are random within a window. Random x and y coordinates?

Thank you for your help!

Hi @cbatog,

Thanks for reaching out! What UI framework are you using? Android maybe? Kotlin by itself does not have the capabilities to draw on the screen, but if you share where you’re trying to draw, maybe we can point you to the correct place! :]

1 Like

This topic was automatically closed after 166 days. New replies are no longer allowed.