this post was submitted on 14 Aug 2024
2 points (75.0% liked)

Perchance - Create a Random Text Generator

448 readers
14 users here now

⚄︎ Perchance

This is a Lemmy Community for perchance.org, a platform for sharing and creating random text generators.

Feel free to ask for help, share your generators, and start friendly discussions at your leisure :)

This community is mainly for discussions between those who are building generators. For discussions about using generators, especially the popular AI ones, the community-led Casual Perchance forum is likely a more appropriate venue.

See this post for the Complete Guide to Posting Here on the Community!

Rules

1. Please follow the Lemmy.World instance rules.

2. Be kind and friendly.

  • Please be kind to others on this community (and also in general), and remember that for many people Perchance is their first experience with coding. We have members for whom English is not their first language, so please be take that into account too :)

3. Be thankful to those who try to help you.

  • If you ask a question and someone has made a effort to help you out, please remember to be thankful! Even if they don't manage to help you solve your problem - remember that they're spending time out of their day to try to help a stranger :)

4. Only post about stuff related to perchance.

  • Please only post about perchance related stuff like generators on it, bugs, and the site.

5. Refrain from requesting Prompts for the AI Tools.

  • We would like to ask to refrain from posting here needing help specifically with prompting/achieving certain results with the AI plugins (text-to-image-plugin and ai-text-plugin) e.g. "What is the good prompt for X?", "How to achieve X with Y generator?"
  • See Perchance AI FAQ for FAQ about the AI tools.
  • You can ask for help with prompting at the 'sister' community Casual Perchance, which is for more casual discussions.
  • We will still be helping/answering questions about the plugins as long as it is related to building generators with them.

6. Search through the Community Before Posting.

  • Please Search through the Community Posts here (and on Reddit) before posting to see if what you will post has similar post/already been posted.

founded 1 year ago
MODERATORS
 

Hello! I hope I'm not being annoying by posting another thread, but thanks to my earlier post I was able to more or less finish my generator! However new ideas have sparked up and I can't seem to get them to work despite my best efforts again :(

I have three things I am trying to do-

  1. I am trying to make it so that the marking will only generate darker than the random base it chooses out of the hue, saturation, and brightness values. I think I managed to do this, but I am not 100% sure and wanted it double checked.

  2. I want to separate the underbelly into three different parts. Underbelly, paws, and face. However, I want the paws and face to generate as the same opacity as the underbelly.

  3. I haven't tried this yet, but I assume it would work the same as the others? But I want to add more leg fades, but they will clash with other paws. Essentially I want certain fades to generate with certain paw types. Would this work the same as what I have for how certain markings will only generate on certain bases?

Thank you again, you all have been so much help getting my generator to where it is now, I'm excited to expand it and make it even better for the small community it's being made for.

top 2 comments
sorted by: hot top controversial new old
[–] wthit56 1 points 3 months ago
  1. I don't know how you've built it so far, but you might want to look into the backdrop-filter css property, which affects whatever happens to be underneath the image. Maybe you could darken the image below with the markings, sort of thing.
  2. I guess store that opacity and use it in other places.
  3. I guess? 🤷
[–] perchance 1 points 3 months ago* (last edited 3 months ago)

RE "I want the paws and face to generate as the same opacity as the underbelly."

At the start of your output items you'd add something like [o1 = "0.{0-99}".evaluateItem, ""] then wherever you write [o1] you'll get that same opacity. And of course you can have lots of variables like this - e.g. [o1 = "0.{0-99}".evaluateItem, o2 = "0.{0-99}".evaluateItem, ""].

Also instead of "0.{0-99}".evaluateItem (which is a bit hacky-looking) you can use Math.random() which returns a decimal number between 0 and 1.

In general, doing "global coordination" between various aspects of your generator will require creating variables like this "up front" and then using them in various places.

BTW, Imgur has betrayed everyone and started deleting images, so it's probably a good idea to use perchance.org/upload instead. I've moved the note about this to the top of the image layer combiner plugin page. And I'd use webp image format because they're much smaller (especially for gradient images - like 10x smaller), so they'll load faster and use up less upload storage space. Webp supports transparency and animations, so they basically replace all other formats - gif, png, and jpg. You can use squoosh.app or photopea.com to convert to webp if needed. Someone should probably make a perchance page that makes it easy for people to mass-convert imgur images using the super fetch plugin and upload plugin. Bascially, paste lists with imgur links in, get lists with perchance upload links out. If someone does that I'll link it from the image layer combiner plugin page.