Jump to content
Search Community

scramble text multiline problem

eomerb test
Moderator Tag

Recommended Posts

Hey eomerb and welcome.

 

The cause of this jumping is because with only the characters you provided there's no way for the line to wrap. One alternative would be to include spaces in your character list for the scramble:

See the Pen dyPdwMb?editors=0010 by GreenSock (@GreenSock) on CodePen

 

If you want to change the proportions of how many Xs and Os there are compared to spaces, just change that in the chars string: 

See the Pen YzPedVy?editors=0010 by GreenSock (@GreenSock) on CodePen

  • Like 3
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...