allows alot of new things. dithering, contrast, saturation, even imbuing the image with more of a certain color. This takes either the result of the image completion from the text-to-image plugin or a canvas.

example page: https://perchance.org/alloimgexample

various things to improve such as allowing multiple tasks flawlessly, and figuring out why the canvas being in the iframe prevents it from changing. future updates will come :)

example is of plugin here: https://perchance.org/alloimg

my learnings from this for pluginmakers: i decided to make my own stuff that needs to run as coherent constant code in to a subobject of window. I will update my other plugins that add something to window to check if they have started yet to a safe place within my base object. Basically none of my own plugins will sprawl globally and will all be accessible under window.allo. Also I figured out to load an external script thru the return of the html text at the bottom of the output, which may be handy.

  • VioneTM
    link
    English
    49 months ago

    btw, you can ‘prettify’ the javascript code that you have written with this website: https://prettier.io/playground/

    What you have is a little bit unreadable since there isn’t any indentation even if there are ‘if/elses’.

    • alloOP
      link
      English
      39 months ago

      makes it ironically barely readable at all now to me since im used to typing with way less indents, lol. but i prettified it so you can read it

      • alloOP
        link
        English
        29 months ago

        i never ever split something().thing().thing() in to 3 separate lines like in the prettified version lol

        • VioneTM
          link
          English
          39 months ago

          I never either lmaooo, there is an option there to increase the width (--print-width) so it wouldn’t be added into a new line.