BluePower

joined 9 months ago
MODERATOR OF
[โ€“] BluePower 3 points 1 month ago

For me though, Perchance is really just a foundation for me to actually create things I like and engage with other creations since I discovered it back in 2022 when it's just plain simple (there was no hub, very simple welcome page, fewer plugins, simpler comments plugin UI, etc.) and there wasn't any AI image stuff or t2i generators yet. And that's the reason why the Generator Manager (my generator hub page) is here. I started to like it so much that I published my first own creation even published here on this platform. Love to see how it evolves, though, and glad this was explained in this Lemmy community!

[โ€“] BluePower 2 points 1 month ago (4 children)

Did you intent to submit it into the image contest or you just wanted to post the image into the community? Overall, it's cool ๐ŸŒŸ

[โ€“] BluePower 2 points 1 month ago

Yeah, I can feel that. ๐Ÿ’ก

[โ€“] BluePower 1 points 1 month ago

That's a great answer! I've never thought of these solutions in a while, maybe even add a warning for that so other newbies could know easily.

[โ€“] BluePower 2 points 1 month ago

You can use the shorthand exp ? if_true : if_false notation chained together instead of the if ... else notations. It's specially used for conditional inline value returns.

[s == "Wolf" ? wolf_gene : s == "Cat" ? cat_gene : s == "Fox" ? fox_gene : ""]

You can also do like this as well:

[({"Wolf": wolf_gene, "Cat": cat_gene, "Fox": fox_gene})[s]]
[โ€“] BluePower 5 points 1 month ago (4 children)

The Great Dreamscape of Serene Imagination

Since it's freestyle, I've decided to go on an image that represents a state of mindful yet limitless imagination that brings into the greatest and the most wonderful sides of the world. Here's what it's turned out.

DetailsGenerated with: txt2image-generator

Prompt: A young man ((floating with his paint kit largely spilling everywhere)), painting an abstract art on a huge canvas ((at an excellently phenomenal, fresh, vibrant orange sunset background with the large sun, mountains and lakes.)) (((Papers, pencils, brushes, (light bursts, and drops of exploding paint) broadly flying and scattering everywhere from the man))), creating a perfect scene that resonates into the doomed reality, excellent artwork, freestyle, conceptual, majestic photo, creative, 4K, ultra-clear quality, huge light leaks, phenomenal light burst, vibrant color grading, dramatic angle, perfectly aligned, ((colorful, extreme angle shot, vibrant color grading))

Negative Prompt: floating on a lake, paint cans, low quality, bad image, watermark

[โ€“] BluePower 2 points 1 month ago* (last edited 1 month ago) (1 children)

This is likely an error with the text-to-image-plugin interfering with some t2i-framework stuff or similar since it's trying to create the gallery iframe inside the generator, as I was getting the exact same error from the text2image-generator. This error normally doesn't happen, because the plugin is always set to access that variable (which points to a span element) under a timeout (which is right after the element was created). I don't know exactly what causes this, so I'm going to ping @[email protected] so they can address this issue in the meantime.

[โ€“] BluePower 2 points 1 month ago (1 children)

That error description on the second screenshot is something that I haven't caught before, I've just got one already, but a bit different. I initially thought it was a custom error from the generator, but turned out it was a new type of error from the Perchance engine.

[โ€“] BluePower 2 points 1 month ago (2 children)

Correction, why is it still shows the old name on the post? And maybe describe a bit what freestyle actually is so people can have some more context to it.

[โ€“] BluePower 1 points 1 month ago
[โ€“] BluePower 2 points 1 month ago* (last edited 1 month ago)

Actually, the bottom side of the outline seems to be blocked up and a bit less thick than the other sides, so I could clearly see that this isn't such the case. Regardless, I can say it's pretty rare though, imagine you sought an image with an absolutely perfect red outline that you cannot distinguish it with actual blocked pictures at all (if you're into admin mode in the gallery).

[โ€“] BluePower 2 points 1 month ago

No problem, I appreciate that!

 

After I finished working on my drawing, I spent some extra time on the event drawing small custom/abstract flags inspired from generated flags from my flag generator, placed on random locations of tiny available spaces on the canvas. Mainly just to help fill the canvas, but overall, that was a cool and fun idea.

I drew a total of 40 flags, but not all of them managed to survive until the end of the event. So, I double-checked and counted all the survived flags, and in total, there are 34 survived flags on the canvas. If you managed to find all of them, I'll reveal a huge list of locations in the comments!

These are some of the mini flags, for a bit of a hint.

 

cross-posted from: https://sh.itjust.works/post/22277134

๐Ÿ“ Canvas location

I'm happy I could finish a 158-pixel-wide drawing mostly (if not all) by myself ever since the time when the canvas was expanded (took around 2 days to finish). At the time the canvas had much more space to build in that I instantly got an idea to build a template incorporating the two URLs of my most popular Perchance projects (Power Generator Manager and Power Flag Generator (a.k.a. Random Custom Flag)) and some references.

There was a bit of an adjustment when someone was drawing overlapping on my template, but it was fine, I then planned to move some parts around.

Now, while I look around the canvas, I wanted to draw more custom/abstract flags scattered around the entire canvas (in tiny available spaces of course) during the remaining time of the event, just to help fill more pixels around the flag layouts/models will be grabbed from my flag generator. Here's a group of the blank versions for a reference. What do you think?

36
submitted 5 months ago* (last edited 5 months ago) by BluePower to c/[email protected]
 

๐Ÿ“ Canvas location

I'm happy I could finish a 158-pixel-wide drawing mostly (if not all) by myself ever since the time when the canvas was expanded (took around 2 days to finish). At the time the canvas had much more space to build in that I instantly got an idea to build a template incorporating the two URLs of my most popular Perchance projects (Power Generator Manager and Power Flag Generator (a.k.a. Random Custom Flag)) and some references.

There was a bit of an adjustment when someone was drawing overlapping on my template, but it was fine, I then planned to move some parts around.

Now, while I look around the canvas, I wanted to draw more custom/abstract flags scattered around the entire canvas (in tiny available spaces of course) during the remaining time of the event, just to help fill more pixels around the flag layouts/models will be grabbed from my flag generator. Here's a group of the blank versions for a reference. What do you think?

 

In case you haven't heard yet, there's an ongoing Canvas event inclusive to the entire Fediverse, similar to Reddit's r/place, that encourages people to place pixels one at a time and draw some cool pixel arts. I participated in the event, and eventually made my own template and started working on it. It is still in progress, though I wanted to post something like this to the community.

Here's a link to the template if you want to look around or would like to help.

Btw, there's a reference about the upcoming huge Generator Manager update!

 

I just discovered another interesting feature utilizing the generatorName altering solution but it is even more powerful. You can basically pull comments and text to image galleries from multiple generators in a single generator page, simply by putting multiple [generatorName = "<generator name>", ""] blocks inside the comments plugin/text to image gallery block calls, according to the left-to-right Perchance code reading mechanism (see the "Execution Order" section in the examples page).

For example, I can have two comments sections, one from my generator hub page and the other from the generators page, and then put an ai-text-to-image-generator gallery, all in one single generator.

Currently didn't have much time to explain it better (but feel free to do so!) Here's a very simple example I made demonstrating the feature.

 

I've discovered a number of blank/empty generators that have zero lines of code on both the list and HTML panels. Here's a compiled list of them that I could find:

If you happen to find another one of these, please let me know!

 

After revisiting, recalling and reevaluating my plans about the big update, so many times, I think it's time for a new trailer about the huge update!

Remember these small, interesting test generators I made that I've been pulling out from the generator hub page over a year ago? Chances are, if you've stumbled upon my page since a very long time ago, you might remember some of them, like Typewriter Speed Test, Fake Error Generator, and The Computer Based Story. And this time, with the huge update, I'll be bringing back those generators with a little bit of twist - they will only be accessible with a special URL parameter you can put in the link, like ?enableRawStats=true.

And this will not only be one of the notable changes I'll make in the update - there's a lot more to come!

 

This is a trick I've stumbled upon several days ago, and I haven't seen it documented anywhere in the examples or advanced tutorial page. If you don't feel like the traditional Markdown style when using the Markdown plugin and simply wanted to use the usual HTML style, you can simply do this:

markdown = {import:markdown-plugin}

output = [markdown(text).replace("markdown-body", "")]

The .replace("markdown-body", "") part is what makes the formatted text loses the Markdown style and goes into the regular HTML style which then you can stylize yourself using CSS to whatever you want. It essentially removes the markdown-body class in the body of the entire markdown text (or that's what I could explain).

4
submitted 5 months ago* (last edited 5 months ago) by BluePower to c/[email protected]
 

Forget to revisit the generator the moment it reached that since I've been on a long trip, but the flag generator has finally reached the second big milestone that the Generator Manager has done about two months ago. I don't have much to say about this one, but still, that's an incredible milestone! ๐Ÿ™‚

(Btw, this is a trailer I did months ago about the huge UI revamp update)

 

Yes, the generator hub page view counter at the top is now merged from the stable Generator Manager release! I didn't know that happened while busy doing implementing some hot patch fixes to the preview page (which includes re-ordering all the wires for all the generator stats, including on the generator cards^[Yes I now refer those as "generator cards", not "generator items" anymore], to work) so it'll be much more cooked to be ready to just efficiently ship all the components into the stable + implementing some additional features.

 

This would happen only in two ways, either the user ID is unique enough that when converted without being caught as a "bad" word in the process it turns into the ABCD visual tag, or after converted, the visual tag deemed to have bad words (or look exactly like a bad word), even after checking it more than one time, resulting in the tag falling back to the ABCD format.

I just deep dived into the comments plugin's user ID into visual ID converting algorithm behind the scenes, that's why I'm making a post related on this topic. Also, have you ever seen actual occurrences of tags like this happening on comments of generators? Share if you have one!

1
submitted 5 months ago* (last edited 5 months ago) by BluePower to c/[email protected]
 

While updating an in-event generator for the ongoing Generator Manager Event, A Venture Poem Generator, I have tried to add the url-params-plugin to add a feature so users could disable glows on the poem for performance reasons. But when testing out the generator after saving, it doesn't work at all. Even when I test if that URL parameter exists at all, it still won't show the expected output. Whatever parameter I put into the URL, when I run [url.anyurlname], it outputs undefined instead.

I've done the same with my view counter experiment generator, and had the same issue. (Try visiting https://perchance.org/the-view-counter-experiment?name=Example, the greeting text above the tabs thing should output Hello, Example!)

This is more likely a bug with the plugin that for some reason fails to cache those URL parameters into the generator. When I try setting the url value to [Object.fromEntries([...new URL(window.location.href).searchParams.entries()])] in place of importing the plugin in that generator, that worked. And since I use two different browsers, both didn't work with the plugin imported.

view more: โ€น prev next โ€บ