Make a transparent 448*448 imageEncode an image inside of the sourceCrop an image to a squareDrawing an Image Based on a Trace of its HueGenerate 100 Java Tuple classesInvert png imageCompress your code in an imageThe Final NumberHilbertify an imageQuote-Safe QuinesPeriod 2 Reversed Quine

Making a sword in the stone, in a medieval world without magic

How do you like my writing?

Should I take out a loan for a friend to invest on my behalf?

Why does the negative sign arise in this thermodynamic relation?

Does splitting a potentially monolithic application into several smaller ones help prevent bugs?

The bar has been raised

Is having access to past exams cheating and, if yes, could it be proven just by a good grade?

How strictly should I take "Candidates must be local"?

How do I deal with a powergamer in a game full of beginners in a school club?

How does airport security verify that you can carry a battery bank over 100 Wh?

They call me Inspector Morse

Do f-stop and exposure time perfectly cancel?

Rejected in 4th interview round citing insufficient years of experience

MTG: Can I kill an opponent in response to lethal activated abilities, and not take the damage?

How much attack damage does the AC boost from a shield prevent on average?

How do I locate a classical quotation?

How to create a hard link to an inode (ext4)?

Things to avoid when using voltage regulators?

What Happens when Passenger Refuses to Fly Boeing 737 Max?

Why is this plane circling around the Lucknow airport every day?

Upside Down Word Puzzle

Word for a person who has no opinion about whether god exists

Why does Deadpool say "You're welcome, Canada," after shooting Ryan Reynolds in the end credits?

How much stiffer are 23c tires over 28c?



Make a transparent 448*448 image


Encode an image inside of the sourceCrop an image to a squareDrawing an Image Based on a Trace of its HueGenerate 100 Java Tuple classesInvert png imageCompress your code in an imageThe Final NumberHilbertify an imageQuote-Safe QuinesPeriod 2 Reversed Quine













2












$begingroup$


This is a simple challenge.



The task is to write code that outputs a 448*448 square image with 100% transparency. The output should follow the standard image rules.










share|improve this question









$endgroup$







  • 4




    $begingroup$
    What's to stop people from submitting a 0-byte answer which "outputs" a transparent (invisible) image to the screen?
    $endgroup$
    – 12Me21
    6 hours ago















2












$begingroup$


This is a simple challenge.



The task is to write code that outputs a 448*448 square image with 100% transparency. The output should follow the standard image rules.










share|improve this question









$endgroup$







  • 4




    $begingroup$
    What's to stop people from submitting a 0-byte answer which "outputs" a transparent (invisible) image to the screen?
    $endgroup$
    – 12Me21
    6 hours ago













2












2








2





$begingroup$


This is a simple challenge.



The task is to write code that outputs a 448*448 square image with 100% transparency. The output should follow the standard image rules.










share|improve this question









$endgroup$




This is a simple challenge.



The task is to write code that outputs a 448*448 square image with 100% transparency. The output should follow the standard image rules.







code-golf graphical-output






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 8 hours ago









AnushAnush

777425




777425







  • 4




    $begingroup$
    What's to stop people from submitting a 0-byte answer which "outputs" a transparent (invisible) image to the screen?
    $endgroup$
    – 12Me21
    6 hours ago












  • 4




    $begingroup$
    What's to stop people from submitting a 0-byte answer which "outputs" a transparent (invisible) image to the screen?
    $endgroup$
    – 12Me21
    6 hours ago







4




4




$begingroup$
What's to stop people from submitting a 0-byte answer which "outputs" a transparent (invisible) image to the screen?
$endgroup$
– 12Me21
6 hours ago




$begingroup$
What's to stop people from submitting a 0-byte answer which "outputs" a transparent (invisible) image to the screen?
$endgroup$
– 12Me21
6 hours ago










15 Answers
15






active

oldest

votes


















4












$begingroup$


APL (Dyalog Unicode), 11 bytesSBCS





Full program. Prints 448-by-448-by-4 array representing a 448-by-448 rgba image.



448 448 4⍴0


Try it online!



is reshape






share|improve this answer









$endgroup$




















    3












    $begingroup$

    Processing, 66 bytes



    PGraphics g=createGraphics(448,448);g.beginDraw();g.save("a.png");





    share|improve this answer









    $endgroup$




















      3












      $begingroup$

      Imagemagick in some shell, 35



      convert -size 448x448 xc:none a.png


      Is this allowed?






      share|improve this answer









      $endgroup$












      • $begingroup$
        Oh! I had no idea this would work. It's surprising and clever, so yes!
        $endgroup$
        – Anush
        7 hours ago











      • $begingroup$
        Please specify the shell
        $endgroup$
        – ASCII-only
        3 hours ago










      • $begingroup$
        Bash, I guess? That's what I used when I tested it. Any POSIX shell should work?
        $endgroup$
        – zevee
        1 hour ago



















      3












      $begingroup$

      Python 2.7, 17 Bytes (22 With Print)



      [[[0]*4]*488]*488


      With Print:



      print[[[0]*4]*488]*488


      As variable:



      x=[[[0]*4]*488]*488


      As an array of RGBA is allowed, that is what I have created above, defaulting to all 0's - meaning black, but totally transparent.



      Try it online!






      share|improve this answer









      $endgroup$




















        3












        $begingroup$


        Jelly, 8 bytes



        448ṁ4¬¥þ


        A niladic Link which yields a 448 by 448 RGBA array of transparent black pixels.



        Try it online!



        How?



        448ṁ4¬¥þ - Link: no arguments
        448 - 448
        þ - outer-product with: -- i.e. [[f(x,y) for y in [1..448]] for x in [1..448]]
        ¥ - last two links as a dyad:
        ṁ4 - mould like [1,2,3,4] -- e.g. x=7 -> [7,7,7,7]
        ¬ - logical NOT -> [0,0,0,0]





        share|improve this answer











        $endgroup$




















          3












          $begingroup$


          Jelly, 10 9 bytes



          x4Wẋ448Ɗ⁺


          Try it online!



          Outputs a 448x448x4 array



          Thanks to @JonathanAllan for saving a byte.






          share|improve this answer











          $endgroup$








          • 1




            $begingroup$
            can be
            $endgroup$
            – Jonathan Allan
            5 hours ago


















          2












          $begingroup$

          Go, 70



          import i"image";func a()i.Imagereturn i.NewRGBA(i.Rect(0,0,448,448))


          Never seen a golf in Go before. Defines a function called a that outputs the image






          share|improve this answer











          $endgroup$




















            2












            $begingroup$


            C# (Visual C# Interactive Compiler), 48 bytes





            _=>(Enumerable.Repeat((0,0,0,0),200704),448,448)


            Apparently outputting [1D array of pixels, width, height] is ok, so this outputs a tuple of `(IEnumerable of pixels, width, height).



            Try it online!




            C# (Visual C# Interactive Compiler), 58 bytes





            _=>Enumerable.Repeat(Enumerable.Repeat((0,0,0,0),448),448)


            The original matrix returning answer.



            Since the image IO rules allow output as a matrix of RGB values, this submission outputs a matrix of RGBA values, represented by tuples with four values, all being 0.



            Try it online!






            share|improve this answer











            $endgroup$




















              1












              $begingroup$


              dzaima/APL + APLP5, 18 bytes



              P5.img 448 448⍴0


              Function that outputs an image object that can be drawn to the screen (for no effect) or converted back to pixel values.






              share|improve this answer









              $endgroup$




















                1












                $begingroup$

                Java 8




                Saving the image to a file with path s, 101 bytes



                s->javax.imageio.ImageIO.write(new java.awt.image.BufferedImage(448,448,2),"png",new java.io.File(s))


                Try it online... somehow

                Returning the BufferedImage, 47 bytes



                ()->new java.awt.image.BufferedImage(448,448,2)


                Saving the image to the file f, 83 bytes



                f->javax.imageio.ImageIO.write(new java.awt.image.BufferedImage(448,448,2),"png",f)


                Dumping PNG to STDOUT, 93 bytes (thanks ASCII-only!)



                ()->javax.imageio.ImageIO.write(new java.awt.image.BufferedImage(448,448,2),"png",System.out)


                Try it online!






                share|improve this answer











                $endgroup$








                • 1




                  $begingroup$
                  Do you mean empty or transparent?
                  $endgroup$
                  – Anush
                  6 hours ago










                • $begingroup$
                  I'm pretty sure empty pngs are transparent, are they not? I typed this up on my phone so I can't check
                  $endgroup$
                  – Benjamin Urquhart
                  6 hours ago










                • $begingroup$
                  Just write to stdout
                  $endgroup$
                  – ASCII-only
                  3 hours ago










                • $begingroup$
                  @ASCII-only So, write an empty (filled with zeros) 448*448*4 array to stdout? Anyways I like the idea of creating an actual PNG file.
                  $endgroup$
                  – Benjamin Urquhart
                  2 hours ago











                • $begingroup$
                  @BenjaminUrquhart no i mean write the bytestream to stdout, you can just redirect in the stream anyway
                  $endgroup$
                  – ASCII-only
                  2 hours ago


















                1












                $begingroup$


                JavaScript (Node.js), 42 bytes





                _=>[Array(200704).fill([0,0,0,0]),448,448]


                Apparently outputting [1D array of pixels, width, height] is ok.



                Try it online!






                share|improve this answer











                $endgroup$












                • $begingroup$
                  invalid... it's a list of strings
                  $endgroup$
                  – ASCII-only
                  1 hour ago










                • $begingroup$
                  Also you can output [1D array of pixels, width, height]
                  $endgroup$
                  – ASCII-only
                  1 hour ago










                • $begingroup$
                  @ASCII-only Fixed now
                  $endgroup$
                  – Embodiment of Ignorance
                  1 hour ago


















                0












                $begingroup$

                HTML, 25 bytes



                Is this valid?



                <svg height=448 width=448


                Test it (background applied with CSS so you can "see" it)






                share|improve this answer









                $endgroup$




















                  0












                  $begingroup$

                  JavaScript (ES6), 74 69 bytes






                  f=
                  (_=document.createElement`canvas`)=>_.toDataURL(_.height=_.width=448)
                  ;document.write(f());





                  Returns a PNG image encoded as a data: URL suitable e.g. for setting as the src of an HTMLImageElement. Edit: Saved 3 bytes thanks to @Shaggy and a further 2 bytes thanks to @Arnauld.






                  share|improve this answer











                  $endgroup$












                  • $begingroup$
                    71 bytes?
                    $endgroup$
                    – Shaggy
                    3 hours ago







                  • 1




                    $begingroup$
                    document.createElement`canvas` should work, saving 2 more bytes.
                    $endgroup$
                    – Arnauld
                    3 hours ago










                  • $begingroup$
                    If createelement is valid would seeing document.body and using the fact an id becomes a variable be valid? Also stack snippet pls
                    $endgroup$
                    – ASCII-only
                    3 hours ago


















                  0












                  $begingroup$

                  Rust - 206 bytes



                  use std::fs::File,io::Write;fn main()File::create("output.tga").unwrap().write(&vec![0,0,2,0,0,0,0,0,0,0,0,0,188,1,188,1,32,0].iter().chain(vec![0u8;788544].iter()).map(


                  This write an actual, readable .tga file, per http://paulbourke.net/dataformats/tga/ by hard coding the width,height, into the binary file header.






                  share|improve this answer









                  $endgroup$












                  • $begingroup$
                    does it need to be printed to a file though :P
                    $endgroup$
                    – ASCII-only
                    2 hours ago










                  • $begingroup$
                    does it even need to be 2 dimensional? I could just say [0;444*444*4]; and say i created a 444x444 transparent image. im making it interesting.
                    $endgroup$
                    – don bright
                    4 mins ago










                  • $begingroup$
                    well also a would work as file name would it not
                    $endgroup$
                    – ASCII-only
                    11 secs ago



















                  0












                  $begingroup$

                  SmileBASIC, 27 bytes



                  DIM A[448,448]SAVE"DAT:I",A


                  Saves a 2-dimensional 448x448 array filled with 0s to a file named DAT:I






                  share|improve this answer









                  $endgroup$












                    Your Answer





                    StackExchange.ifUsing("editor", function ()
                    return StackExchange.using("mathjaxEditing", function ()
                    StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
                    StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["\$", "\$"]]);
                    );
                    );
                    , "mathjax-editing");

                    StackExchange.ifUsing("editor", function ()
                    StackExchange.using("externalEditor", function ()
                    StackExchange.using("snippets", function ()
                    StackExchange.snippets.init();
                    );
                    );
                    , "code-snippets");

                    StackExchange.ready(function()
                    var channelOptions =
                    tags: "".split(" "),
                    id: "200"
                    ;
                    initTagRenderer("".split(" "), "".split(" "), channelOptions);

                    StackExchange.using("externalEditor", function()
                    // Have to fire editor after snippets, if snippets enabled
                    if (StackExchange.settings.snippets.snippetsEnabled)
                    StackExchange.using("snippets", function()
                    createEditor();
                    );

                    else
                    createEditor();

                    );

                    function createEditor()
                    StackExchange.prepareEditor(
                    heartbeatType: 'answer',
                    autoActivateHeartbeat: false,
                    convertImagesToLinks: false,
                    noModals: true,
                    showLowRepImageUploadWarning: true,
                    reputationToPostImages: null,
                    bindNavPrevention: true,
                    postfix: "",
                    imageUploader:
                    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
                    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
                    allowUrls: true
                    ,
                    onDemand: true,
                    discardSelector: ".discard-answer"
                    ,immediatelyShowMarkdownHelp:true
                    );



                    );













                    draft saved

                    draft discarded


















                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcodegolf.stackexchange.com%2fquestions%2f181409%2fmake-a-transparent-448448-image%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown

























                    15 Answers
                    15






                    active

                    oldest

                    votes








                    15 Answers
                    15






                    active

                    oldest

                    votes









                    active

                    oldest

                    votes






                    active

                    oldest

                    votes









                    4












                    $begingroup$


                    APL (Dyalog Unicode), 11 bytesSBCS





                    Full program. Prints 448-by-448-by-4 array representing a 448-by-448 rgba image.



                    448 448 4⍴0


                    Try it online!



                    is reshape






                    share|improve this answer









                    $endgroup$

















                      4












                      $begingroup$


                      APL (Dyalog Unicode), 11 bytesSBCS





                      Full program. Prints 448-by-448-by-4 array representing a 448-by-448 rgba image.



                      448 448 4⍴0


                      Try it online!



                      is reshape






                      share|improve this answer









                      $endgroup$















                        4












                        4








                        4





                        $begingroup$


                        APL (Dyalog Unicode), 11 bytesSBCS





                        Full program. Prints 448-by-448-by-4 array representing a 448-by-448 rgba image.



                        448 448 4⍴0


                        Try it online!



                        is reshape






                        share|improve this answer









                        $endgroup$




                        APL (Dyalog Unicode), 11 bytesSBCS





                        Full program. Prints 448-by-448-by-4 array representing a 448-by-448 rgba image.



                        448 448 4⍴0


                        Try it online!



                        is reshape







                        share|improve this answer












                        share|improve this answer



                        share|improve this answer










                        answered 8 hours ago









                        AdámAdám

                        28.6k276204




                        28.6k276204





















                            3












                            $begingroup$

                            Processing, 66 bytes



                            PGraphics g=createGraphics(448,448);g.beginDraw();g.save("a.png");





                            share|improve this answer









                            $endgroup$

















                              3












                              $begingroup$

                              Processing, 66 bytes



                              PGraphics g=createGraphics(448,448);g.beginDraw();g.save("a.png");





                              share|improve this answer









                              $endgroup$















                                3












                                3








                                3





                                $begingroup$

                                Processing, 66 bytes



                                PGraphics g=createGraphics(448,448);g.beginDraw();g.save("a.png");





                                share|improve this answer









                                $endgroup$



                                Processing, 66 bytes



                                PGraphics g=createGraphics(448,448);g.beginDraw();g.save("a.png");






                                share|improve this answer












                                share|improve this answer



                                share|improve this answer










                                answered 7 hours ago









                                dzaimadzaima

                                15.3k21856




                                15.3k21856





















                                    3












                                    $begingroup$

                                    Imagemagick in some shell, 35



                                    convert -size 448x448 xc:none a.png


                                    Is this allowed?






                                    share|improve this answer









                                    $endgroup$












                                    • $begingroup$
                                      Oh! I had no idea this would work. It's surprising and clever, so yes!
                                      $endgroup$
                                      – Anush
                                      7 hours ago











                                    • $begingroup$
                                      Please specify the shell
                                      $endgroup$
                                      – ASCII-only
                                      3 hours ago










                                    • $begingroup$
                                      Bash, I guess? That's what I used when I tested it. Any POSIX shell should work?
                                      $endgroup$
                                      – zevee
                                      1 hour ago
















                                    3












                                    $begingroup$

                                    Imagemagick in some shell, 35



                                    convert -size 448x448 xc:none a.png


                                    Is this allowed?






                                    share|improve this answer









                                    $endgroup$












                                    • $begingroup$
                                      Oh! I had no idea this would work. It's surprising and clever, so yes!
                                      $endgroup$
                                      – Anush
                                      7 hours ago











                                    • $begingroup$
                                      Please specify the shell
                                      $endgroup$
                                      – ASCII-only
                                      3 hours ago










                                    • $begingroup$
                                      Bash, I guess? That's what I used when I tested it. Any POSIX shell should work?
                                      $endgroup$
                                      – zevee
                                      1 hour ago














                                    3












                                    3








                                    3





                                    $begingroup$

                                    Imagemagick in some shell, 35



                                    convert -size 448x448 xc:none a.png


                                    Is this allowed?






                                    share|improve this answer









                                    $endgroup$



                                    Imagemagick in some shell, 35



                                    convert -size 448x448 xc:none a.png


                                    Is this allowed?







                                    share|improve this answer












                                    share|improve this answer



                                    share|improve this answer










                                    answered 7 hours ago









                                    zeveezevee

                                    28016




                                    28016











                                    • $begingroup$
                                      Oh! I had no idea this would work. It's surprising and clever, so yes!
                                      $endgroup$
                                      – Anush
                                      7 hours ago











                                    • $begingroup$
                                      Please specify the shell
                                      $endgroup$
                                      – ASCII-only
                                      3 hours ago










                                    • $begingroup$
                                      Bash, I guess? That's what I used when I tested it. Any POSIX shell should work?
                                      $endgroup$
                                      – zevee
                                      1 hour ago

















                                    • $begingroup$
                                      Oh! I had no idea this would work. It's surprising and clever, so yes!
                                      $endgroup$
                                      – Anush
                                      7 hours ago











                                    • $begingroup$
                                      Please specify the shell
                                      $endgroup$
                                      – ASCII-only
                                      3 hours ago










                                    • $begingroup$
                                      Bash, I guess? That's what I used when I tested it. Any POSIX shell should work?
                                      $endgroup$
                                      – zevee
                                      1 hour ago
















                                    $begingroup$
                                    Oh! I had no idea this would work. It's surprising and clever, so yes!
                                    $endgroup$
                                    – Anush
                                    7 hours ago





                                    $begingroup$
                                    Oh! I had no idea this would work. It's surprising and clever, so yes!
                                    $endgroup$
                                    – Anush
                                    7 hours ago













                                    $begingroup$
                                    Please specify the shell
                                    $endgroup$
                                    – ASCII-only
                                    3 hours ago




                                    $begingroup$
                                    Please specify the shell
                                    $endgroup$
                                    – ASCII-only
                                    3 hours ago












                                    $begingroup$
                                    Bash, I guess? That's what I used when I tested it. Any POSIX shell should work?
                                    $endgroup$
                                    – zevee
                                    1 hour ago





                                    $begingroup$
                                    Bash, I guess? That's what I used when I tested it. Any POSIX shell should work?
                                    $endgroup$
                                    – zevee
                                    1 hour ago












                                    3












                                    $begingroup$

                                    Python 2.7, 17 Bytes (22 With Print)



                                    [[[0]*4]*488]*488


                                    With Print:



                                    print[[[0]*4]*488]*488


                                    As variable:



                                    x=[[[0]*4]*488]*488


                                    As an array of RGBA is allowed, that is what I have created above, defaulting to all 0's - meaning black, but totally transparent.



                                    Try it online!






                                    share|improve this answer









                                    $endgroup$

















                                      3












                                      $begingroup$

                                      Python 2.7, 17 Bytes (22 With Print)



                                      [[[0]*4]*488]*488


                                      With Print:



                                      print[[[0]*4]*488]*488


                                      As variable:



                                      x=[[[0]*4]*488]*488


                                      As an array of RGBA is allowed, that is what I have created above, defaulting to all 0's - meaning black, but totally transparent.



                                      Try it online!






                                      share|improve this answer









                                      $endgroup$















                                        3












                                        3








                                        3





                                        $begingroup$

                                        Python 2.7, 17 Bytes (22 With Print)



                                        [[[0]*4]*488]*488


                                        With Print:



                                        print[[[0]*4]*488]*488


                                        As variable:



                                        x=[[[0]*4]*488]*488


                                        As an array of RGBA is allowed, that is what I have created above, defaulting to all 0's - meaning black, but totally transparent.



                                        Try it online!






                                        share|improve this answer









                                        $endgroup$



                                        Python 2.7, 17 Bytes (22 With Print)



                                        [[[0]*4]*488]*488


                                        With Print:



                                        print[[[0]*4]*488]*488


                                        As variable:



                                        x=[[[0]*4]*488]*488


                                        As an array of RGBA is allowed, that is what I have created above, defaulting to all 0's - meaning black, but totally transparent.



                                        Try it online!







                                        share|improve this answer












                                        share|improve this answer



                                        share|improve this answer










                                        answered 5 hours ago









                                        Snaddyvitch DispenserSnaddyvitch Dispenser

                                        615




                                        615





















                                            3












                                            $begingroup$


                                            Jelly, 8 bytes



                                            448ṁ4¬¥þ


                                            A niladic Link which yields a 448 by 448 RGBA array of transparent black pixels.



                                            Try it online!



                                            How?



                                            448ṁ4¬¥þ - Link: no arguments
                                            448 - 448
                                            þ - outer-product with: -- i.e. [[f(x,y) for y in [1..448]] for x in [1..448]]
                                            ¥ - last two links as a dyad:
                                            ṁ4 - mould like [1,2,3,4] -- e.g. x=7 -> [7,7,7,7]
                                            ¬ - logical NOT -> [0,0,0,0]





                                            share|improve this answer











                                            $endgroup$

















                                              3












                                              $begingroup$


                                              Jelly, 8 bytes



                                              448ṁ4¬¥þ


                                              A niladic Link which yields a 448 by 448 RGBA array of transparent black pixels.



                                              Try it online!



                                              How?



                                              448ṁ4¬¥þ - Link: no arguments
                                              448 - 448
                                              þ - outer-product with: -- i.e. [[f(x,y) for y in [1..448]] for x in [1..448]]
                                              ¥ - last two links as a dyad:
                                              ṁ4 - mould like [1,2,3,4] -- e.g. x=7 -> [7,7,7,7]
                                              ¬ - logical NOT -> [0,0,0,0]





                                              share|improve this answer











                                              $endgroup$















                                                3












                                                3








                                                3





                                                $begingroup$


                                                Jelly, 8 bytes



                                                448ṁ4¬¥þ


                                                A niladic Link which yields a 448 by 448 RGBA array of transparent black pixels.



                                                Try it online!



                                                How?



                                                448ṁ4¬¥þ - Link: no arguments
                                                448 - 448
                                                þ - outer-product with: -- i.e. [[f(x,y) for y in [1..448]] for x in [1..448]]
                                                ¥ - last two links as a dyad:
                                                ṁ4 - mould like [1,2,3,4] -- e.g. x=7 -> [7,7,7,7]
                                                ¬ - logical NOT -> [0,0,0,0]





                                                share|improve this answer











                                                $endgroup$




                                                Jelly, 8 bytes



                                                448ṁ4¬¥þ


                                                A niladic Link which yields a 448 by 448 RGBA array of transparent black pixels.



                                                Try it online!



                                                How?



                                                448ṁ4¬¥þ - Link: no arguments
                                                448 - 448
                                                þ - outer-product with: -- i.e. [[f(x,y) for y in [1..448]] for x in [1..448]]
                                                ¥ - last two links as a dyad:
                                                ṁ4 - mould like [1,2,3,4] -- e.g. x=7 -> [7,7,7,7]
                                                ¬ - logical NOT -> [0,0,0,0]






                                                share|improve this answer














                                                share|improve this answer



                                                share|improve this answer








                                                edited 5 hours ago

























                                                answered 5 hours ago









                                                Jonathan AllanJonathan Allan

                                                52.9k535171




                                                52.9k535171





















                                                    3












                                                    $begingroup$


                                                    Jelly, 10 9 bytes



                                                    x4Wẋ448Ɗ⁺


                                                    Try it online!



                                                    Outputs a 448x448x4 array



                                                    Thanks to @JonathanAllan for saving a byte.






                                                    share|improve this answer











                                                    $endgroup$








                                                    • 1




                                                      $begingroup$
                                                      can be
                                                      $endgroup$
                                                      – Jonathan Allan
                                                      5 hours ago















                                                    3












                                                    $begingroup$


                                                    Jelly, 10 9 bytes



                                                    x4Wẋ448Ɗ⁺


                                                    Try it online!



                                                    Outputs a 448x448x4 array



                                                    Thanks to @JonathanAllan for saving a byte.






                                                    share|improve this answer











                                                    $endgroup$








                                                    • 1




                                                      $begingroup$
                                                      can be
                                                      $endgroup$
                                                      – Jonathan Allan
                                                      5 hours ago













                                                    3












                                                    3








                                                    3





                                                    $begingroup$


                                                    Jelly, 10 9 bytes



                                                    x4Wẋ448Ɗ⁺


                                                    Try it online!



                                                    Outputs a 448x448x4 array



                                                    Thanks to @JonathanAllan for saving a byte.






                                                    share|improve this answer











                                                    $endgroup$




                                                    Jelly, 10 9 bytes



                                                    x4Wẋ448Ɗ⁺


                                                    Try it online!



                                                    Outputs a 448x448x4 array



                                                    Thanks to @JonathanAllan for saving a byte.







                                                    share|improve this answer














                                                    share|improve this answer



                                                    share|improve this answer








                                                    edited 5 hours ago

























                                                    answered 7 hours ago









                                                    Nick KennedyNick Kennedy

                                                    65137




                                                    65137







                                                    • 1




                                                      $begingroup$
                                                      can be
                                                      $endgroup$
                                                      – Jonathan Allan
                                                      5 hours ago












                                                    • 1




                                                      $begingroup$
                                                      can be
                                                      $endgroup$
                                                      – Jonathan Allan
                                                      5 hours ago







                                                    1




                                                    1




                                                    $begingroup$
                                                    can be
                                                    $endgroup$
                                                    – Jonathan Allan
                                                    5 hours ago




                                                    $begingroup$
                                                    can be
                                                    $endgroup$
                                                    – Jonathan Allan
                                                    5 hours ago











                                                    2












                                                    $begingroup$

                                                    Go, 70



                                                    import i"image";func a()i.Imagereturn i.NewRGBA(i.Rect(0,0,448,448))


                                                    Never seen a golf in Go before. Defines a function called a that outputs the image






                                                    share|improve this answer











                                                    $endgroup$

















                                                      2












                                                      $begingroup$

                                                      Go, 70



                                                      import i"image";func a()i.Imagereturn i.NewRGBA(i.Rect(0,0,448,448))


                                                      Never seen a golf in Go before. Defines a function called a that outputs the image






                                                      share|improve this answer











                                                      $endgroup$















                                                        2












                                                        2








                                                        2





                                                        $begingroup$

                                                        Go, 70



                                                        import i"image";func a()i.Imagereturn i.NewRGBA(i.Rect(0,0,448,448))


                                                        Never seen a golf in Go before. Defines a function called a that outputs the image






                                                        share|improve this answer











                                                        $endgroup$



                                                        Go, 70



                                                        import i"image";func a()i.Imagereturn i.NewRGBA(i.Rect(0,0,448,448))


                                                        Never seen a golf in Go before. Defines a function called a that outputs the image







                                                        share|improve this answer














                                                        share|improve this answer



                                                        share|improve this answer








                                                        edited 6 hours ago









                                                        Embodiment of Ignorance

                                                        1,678124




                                                        1,678124










                                                        answered 7 hours ago









                                                        zeveezevee

                                                        28016




                                                        28016





















                                                            2












                                                            $begingroup$


                                                            C# (Visual C# Interactive Compiler), 48 bytes





                                                            _=>(Enumerable.Repeat((0,0,0,0),200704),448,448)


                                                            Apparently outputting [1D array of pixels, width, height] is ok, so this outputs a tuple of `(IEnumerable of pixels, width, height).



                                                            Try it online!




                                                            C# (Visual C# Interactive Compiler), 58 bytes





                                                            _=>Enumerable.Repeat(Enumerable.Repeat((0,0,0,0),448),448)


                                                            The original matrix returning answer.



                                                            Since the image IO rules allow output as a matrix of RGB values, this submission outputs a matrix of RGBA values, represented by tuples with four values, all being 0.



                                                            Try it online!






                                                            share|improve this answer











                                                            $endgroup$

















                                                              2












                                                              $begingroup$


                                                              C# (Visual C# Interactive Compiler), 48 bytes





                                                              _=>(Enumerable.Repeat((0,0,0,0),200704),448,448)


                                                              Apparently outputting [1D array of pixels, width, height] is ok, so this outputs a tuple of `(IEnumerable of pixels, width, height).



                                                              Try it online!




                                                              C# (Visual C# Interactive Compiler), 58 bytes





                                                              _=>Enumerable.Repeat(Enumerable.Repeat((0,0,0,0),448),448)


                                                              The original matrix returning answer.



                                                              Since the image IO rules allow output as a matrix of RGB values, this submission outputs a matrix of RGBA values, represented by tuples with four values, all being 0.



                                                              Try it online!






                                                              share|improve this answer











                                                              $endgroup$















                                                                2












                                                                2








                                                                2





                                                                $begingroup$


                                                                C# (Visual C# Interactive Compiler), 48 bytes





                                                                _=>(Enumerable.Repeat((0,0,0,0),200704),448,448)


                                                                Apparently outputting [1D array of pixels, width, height] is ok, so this outputs a tuple of `(IEnumerable of pixels, width, height).



                                                                Try it online!




                                                                C# (Visual C# Interactive Compiler), 58 bytes





                                                                _=>Enumerable.Repeat(Enumerable.Repeat((0,0,0,0),448),448)


                                                                The original matrix returning answer.



                                                                Since the image IO rules allow output as a matrix of RGB values, this submission outputs a matrix of RGBA values, represented by tuples with four values, all being 0.



                                                                Try it online!






                                                                share|improve this answer











                                                                $endgroup$




                                                                C# (Visual C# Interactive Compiler), 48 bytes





                                                                _=>(Enumerable.Repeat((0,0,0,0),200704),448,448)


                                                                Apparently outputting [1D array of pixels, width, height] is ok, so this outputs a tuple of `(IEnumerable of pixels, width, height).



                                                                Try it online!




                                                                C# (Visual C# Interactive Compiler), 58 bytes





                                                                _=>Enumerable.Repeat(Enumerable.Repeat((0,0,0,0),448),448)


                                                                The original matrix returning answer.



                                                                Since the image IO rules allow output as a matrix of RGB values, this submission outputs a matrix of RGBA values, represented by tuples with four values, all being 0.



                                                                Try it online!







                                                                share|improve this answer














                                                                share|improve this answer



                                                                share|improve this answer








                                                                edited 55 mins ago

























                                                                answered 7 hours ago









                                                                Embodiment of IgnoranceEmbodiment of Ignorance

                                                                1,678124




                                                                1,678124





















                                                                    1












                                                                    $begingroup$


                                                                    dzaima/APL + APLP5, 18 bytes



                                                                    P5.img 448 448⍴0


                                                                    Function that outputs an image object that can be drawn to the screen (for no effect) or converted back to pixel values.






                                                                    share|improve this answer









                                                                    $endgroup$

















                                                                      1












                                                                      $begingroup$


                                                                      dzaima/APL + APLP5, 18 bytes



                                                                      P5.img 448 448⍴0


                                                                      Function that outputs an image object that can be drawn to the screen (for no effect) or converted back to pixel values.






                                                                      share|improve this answer









                                                                      $endgroup$















                                                                        1












                                                                        1








                                                                        1





                                                                        $begingroup$


                                                                        dzaima/APL + APLP5, 18 bytes



                                                                        P5.img 448 448⍴0


                                                                        Function that outputs an image object that can be drawn to the screen (for no effect) or converted back to pixel values.






                                                                        share|improve this answer









                                                                        $endgroup$




                                                                        dzaima/APL + APLP5, 18 bytes



                                                                        P5.img 448 448⍴0


                                                                        Function that outputs an image object that can be drawn to the screen (for no effect) or converted back to pixel values.







                                                                        share|improve this answer












                                                                        share|improve this answer



                                                                        share|improve this answer










                                                                        answered 7 hours ago









                                                                        dzaimadzaima

                                                                        15.3k21856




                                                                        15.3k21856





















                                                                            1












                                                                            $begingroup$

                                                                            Java 8




                                                                            Saving the image to a file with path s, 101 bytes



                                                                            s->javax.imageio.ImageIO.write(new java.awt.image.BufferedImage(448,448,2),"png",new java.io.File(s))


                                                                            Try it online... somehow

                                                                            Returning the BufferedImage, 47 bytes



                                                                            ()->new java.awt.image.BufferedImage(448,448,2)


                                                                            Saving the image to the file f, 83 bytes



                                                                            f->javax.imageio.ImageIO.write(new java.awt.image.BufferedImage(448,448,2),"png",f)


                                                                            Dumping PNG to STDOUT, 93 bytes (thanks ASCII-only!)



                                                                            ()->javax.imageio.ImageIO.write(new java.awt.image.BufferedImage(448,448,2),"png",System.out)


                                                                            Try it online!






                                                                            share|improve this answer











                                                                            $endgroup$








                                                                            • 1




                                                                              $begingroup$
                                                                              Do you mean empty or transparent?
                                                                              $endgroup$
                                                                              – Anush
                                                                              6 hours ago










                                                                            • $begingroup$
                                                                              I'm pretty sure empty pngs are transparent, are they not? I typed this up on my phone so I can't check
                                                                              $endgroup$
                                                                              – Benjamin Urquhart
                                                                              6 hours ago










                                                                            • $begingroup$
                                                                              Just write to stdout
                                                                              $endgroup$
                                                                              – ASCII-only
                                                                              3 hours ago










                                                                            • $begingroup$
                                                                              @ASCII-only So, write an empty (filled with zeros) 448*448*4 array to stdout? Anyways I like the idea of creating an actual PNG file.
                                                                              $endgroup$
                                                                              – Benjamin Urquhart
                                                                              2 hours ago











                                                                            • $begingroup$
                                                                              @BenjaminUrquhart no i mean write the bytestream to stdout, you can just redirect in the stream anyway
                                                                              $endgroup$
                                                                              – ASCII-only
                                                                              2 hours ago















                                                                            1












                                                                            $begingroup$

                                                                            Java 8




                                                                            Saving the image to a file with path s, 101 bytes



                                                                            s->javax.imageio.ImageIO.write(new java.awt.image.BufferedImage(448,448,2),"png",new java.io.File(s))


                                                                            Try it online... somehow

                                                                            Returning the BufferedImage, 47 bytes



                                                                            ()->new java.awt.image.BufferedImage(448,448,2)


                                                                            Saving the image to the file f, 83 bytes



                                                                            f->javax.imageio.ImageIO.write(new java.awt.image.BufferedImage(448,448,2),"png",f)


                                                                            Dumping PNG to STDOUT, 93 bytes (thanks ASCII-only!)



                                                                            ()->javax.imageio.ImageIO.write(new java.awt.image.BufferedImage(448,448,2),"png",System.out)


                                                                            Try it online!






                                                                            share|improve this answer











                                                                            $endgroup$








                                                                            • 1




                                                                              $begingroup$
                                                                              Do you mean empty or transparent?
                                                                              $endgroup$
                                                                              – Anush
                                                                              6 hours ago










                                                                            • $begingroup$
                                                                              I'm pretty sure empty pngs are transparent, are they not? I typed this up on my phone so I can't check
                                                                              $endgroup$
                                                                              – Benjamin Urquhart
                                                                              6 hours ago










                                                                            • $begingroup$
                                                                              Just write to stdout
                                                                              $endgroup$
                                                                              – ASCII-only
                                                                              3 hours ago










                                                                            • $begingroup$
                                                                              @ASCII-only So, write an empty (filled with zeros) 448*448*4 array to stdout? Anyways I like the idea of creating an actual PNG file.
                                                                              $endgroup$
                                                                              – Benjamin Urquhart
                                                                              2 hours ago











                                                                            • $begingroup$
                                                                              @BenjaminUrquhart no i mean write the bytestream to stdout, you can just redirect in the stream anyway
                                                                              $endgroup$
                                                                              – ASCII-only
                                                                              2 hours ago













                                                                            1












                                                                            1








                                                                            1





                                                                            $begingroup$

                                                                            Java 8




                                                                            Saving the image to a file with path s, 101 bytes



                                                                            s->javax.imageio.ImageIO.write(new java.awt.image.BufferedImage(448,448,2),"png",new java.io.File(s))


                                                                            Try it online... somehow

                                                                            Returning the BufferedImage, 47 bytes



                                                                            ()->new java.awt.image.BufferedImage(448,448,2)


                                                                            Saving the image to the file f, 83 bytes



                                                                            f->javax.imageio.ImageIO.write(new java.awt.image.BufferedImage(448,448,2),"png",f)


                                                                            Dumping PNG to STDOUT, 93 bytes (thanks ASCII-only!)



                                                                            ()->javax.imageio.ImageIO.write(new java.awt.image.BufferedImage(448,448,2),"png",System.out)


                                                                            Try it online!






                                                                            share|improve this answer











                                                                            $endgroup$



                                                                            Java 8




                                                                            Saving the image to a file with path s, 101 bytes



                                                                            s->javax.imageio.ImageIO.write(new java.awt.image.BufferedImage(448,448,2),"png",new java.io.File(s))


                                                                            Try it online... somehow

                                                                            Returning the BufferedImage, 47 bytes



                                                                            ()->new java.awt.image.BufferedImage(448,448,2)


                                                                            Saving the image to the file f, 83 bytes



                                                                            f->javax.imageio.ImageIO.write(new java.awt.image.BufferedImage(448,448,2),"png",f)


                                                                            Dumping PNG to STDOUT, 93 bytes (thanks ASCII-only!)



                                                                            ()->javax.imageio.ImageIO.write(new java.awt.image.BufferedImage(448,448,2),"png",System.out)


                                                                            Try it online!







                                                                            share|improve this answer














                                                                            share|improve this answer



                                                                            share|improve this answer








                                                                            edited 1 hour ago

























                                                                            answered 6 hours ago









                                                                            Benjamin UrquhartBenjamin Urquhart

                                                                            714




                                                                            714







                                                                            • 1




                                                                              $begingroup$
                                                                              Do you mean empty or transparent?
                                                                              $endgroup$
                                                                              – Anush
                                                                              6 hours ago










                                                                            • $begingroup$
                                                                              I'm pretty sure empty pngs are transparent, are they not? I typed this up on my phone so I can't check
                                                                              $endgroup$
                                                                              – Benjamin Urquhart
                                                                              6 hours ago










                                                                            • $begingroup$
                                                                              Just write to stdout
                                                                              $endgroup$
                                                                              – ASCII-only
                                                                              3 hours ago










                                                                            • $begingroup$
                                                                              @ASCII-only So, write an empty (filled with zeros) 448*448*4 array to stdout? Anyways I like the idea of creating an actual PNG file.
                                                                              $endgroup$
                                                                              – Benjamin Urquhart
                                                                              2 hours ago











                                                                            • $begingroup$
                                                                              @BenjaminUrquhart no i mean write the bytestream to stdout, you can just redirect in the stream anyway
                                                                              $endgroup$
                                                                              – ASCII-only
                                                                              2 hours ago












                                                                            • 1




                                                                              $begingroup$
                                                                              Do you mean empty or transparent?
                                                                              $endgroup$
                                                                              – Anush
                                                                              6 hours ago










                                                                            • $begingroup$
                                                                              I'm pretty sure empty pngs are transparent, are they not? I typed this up on my phone so I can't check
                                                                              $endgroup$
                                                                              – Benjamin Urquhart
                                                                              6 hours ago










                                                                            • $begingroup$
                                                                              Just write to stdout
                                                                              $endgroup$
                                                                              – ASCII-only
                                                                              3 hours ago










                                                                            • $begingroup$
                                                                              @ASCII-only So, write an empty (filled with zeros) 448*448*4 array to stdout? Anyways I like the idea of creating an actual PNG file.
                                                                              $endgroup$
                                                                              – Benjamin Urquhart
                                                                              2 hours ago











                                                                            • $begingroup$
                                                                              @BenjaminUrquhart no i mean write the bytestream to stdout, you can just redirect in the stream anyway
                                                                              $endgroup$
                                                                              – ASCII-only
                                                                              2 hours ago







                                                                            1




                                                                            1




                                                                            $begingroup$
                                                                            Do you mean empty or transparent?
                                                                            $endgroup$
                                                                            – Anush
                                                                            6 hours ago




                                                                            $begingroup$
                                                                            Do you mean empty or transparent?
                                                                            $endgroup$
                                                                            – Anush
                                                                            6 hours ago












                                                                            $begingroup$
                                                                            I'm pretty sure empty pngs are transparent, are they not? I typed this up on my phone so I can't check
                                                                            $endgroup$
                                                                            – Benjamin Urquhart
                                                                            6 hours ago




                                                                            $begingroup$
                                                                            I'm pretty sure empty pngs are transparent, are they not? I typed this up on my phone so I can't check
                                                                            $endgroup$
                                                                            – Benjamin Urquhart
                                                                            6 hours ago












                                                                            $begingroup$
                                                                            Just write to stdout
                                                                            $endgroup$
                                                                            – ASCII-only
                                                                            3 hours ago




                                                                            $begingroup$
                                                                            Just write to stdout
                                                                            $endgroup$
                                                                            – ASCII-only
                                                                            3 hours ago












                                                                            $begingroup$
                                                                            @ASCII-only So, write an empty (filled with zeros) 448*448*4 array to stdout? Anyways I like the idea of creating an actual PNG file.
                                                                            $endgroup$
                                                                            – Benjamin Urquhart
                                                                            2 hours ago





                                                                            $begingroup$
                                                                            @ASCII-only So, write an empty (filled with zeros) 448*448*4 array to stdout? Anyways I like the idea of creating an actual PNG file.
                                                                            $endgroup$
                                                                            – Benjamin Urquhart
                                                                            2 hours ago













                                                                            $begingroup$
                                                                            @BenjaminUrquhart no i mean write the bytestream to stdout, you can just redirect in the stream anyway
                                                                            $endgroup$
                                                                            – ASCII-only
                                                                            2 hours ago




                                                                            $begingroup$
                                                                            @BenjaminUrquhart no i mean write the bytestream to stdout, you can just redirect in the stream anyway
                                                                            $endgroup$
                                                                            – ASCII-only
                                                                            2 hours ago











                                                                            1












                                                                            $begingroup$


                                                                            JavaScript (Node.js), 42 bytes





                                                                            _=>[Array(200704).fill([0,0,0,0]),448,448]


                                                                            Apparently outputting [1D array of pixels, width, height] is ok.



                                                                            Try it online!






                                                                            share|improve this answer











                                                                            $endgroup$












                                                                            • $begingroup$
                                                                              invalid... it's a list of strings
                                                                              $endgroup$
                                                                              – ASCII-only
                                                                              1 hour ago










                                                                            • $begingroup$
                                                                              Also you can output [1D array of pixels, width, height]
                                                                              $endgroup$
                                                                              – ASCII-only
                                                                              1 hour ago










                                                                            • $begingroup$
                                                                              @ASCII-only Fixed now
                                                                              $endgroup$
                                                                              – Embodiment of Ignorance
                                                                              1 hour ago















                                                                            1












                                                                            $begingroup$


                                                                            JavaScript (Node.js), 42 bytes





                                                                            _=>[Array(200704).fill([0,0,0,0]),448,448]


                                                                            Apparently outputting [1D array of pixels, width, height] is ok.



                                                                            Try it online!






                                                                            share|improve this answer











                                                                            $endgroup$












                                                                            • $begingroup$
                                                                              invalid... it's a list of strings
                                                                              $endgroup$
                                                                              – ASCII-only
                                                                              1 hour ago










                                                                            • $begingroup$
                                                                              Also you can output [1D array of pixels, width, height]
                                                                              $endgroup$
                                                                              – ASCII-only
                                                                              1 hour ago










                                                                            • $begingroup$
                                                                              @ASCII-only Fixed now
                                                                              $endgroup$
                                                                              – Embodiment of Ignorance
                                                                              1 hour ago













                                                                            1












                                                                            1








                                                                            1





                                                                            $begingroup$


                                                                            JavaScript (Node.js), 42 bytes





                                                                            _=>[Array(200704).fill([0,0,0,0]),448,448]


                                                                            Apparently outputting [1D array of pixels, width, height] is ok.



                                                                            Try it online!






                                                                            share|improve this answer











                                                                            $endgroup$




                                                                            JavaScript (Node.js), 42 bytes





                                                                            _=>[Array(200704).fill([0,0,0,0]),448,448]


                                                                            Apparently outputting [1D array of pixels, width, height] is ok.



                                                                            Try it online!







                                                                            share|improve this answer














                                                                            share|improve this answer



                                                                            share|improve this answer








                                                                            edited 1 hour ago

























                                                                            answered 1 hour ago









                                                                            Embodiment of IgnoranceEmbodiment of Ignorance

                                                                            1,678124




                                                                            1,678124











                                                                            • $begingroup$
                                                                              invalid... it's a list of strings
                                                                              $endgroup$
                                                                              – ASCII-only
                                                                              1 hour ago










                                                                            • $begingroup$
                                                                              Also you can output [1D array of pixels, width, height]
                                                                              $endgroup$
                                                                              – ASCII-only
                                                                              1 hour ago










                                                                            • $begingroup$
                                                                              @ASCII-only Fixed now
                                                                              $endgroup$
                                                                              – Embodiment of Ignorance
                                                                              1 hour ago
















                                                                            • $begingroup$
                                                                              invalid... it's a list of strings
                                                                              $endgroup$
                                                                              – ASCII-only
                                                                              1 hour ago










                                                                            • $begingroup$
                                                                              Also you can output [1D array of pixels, width, height]
                                                                              $endgroup$
                                                                              – ASCII-only
                                                                              1 hour ago










                                                                            • $begingroup$
                                                                              @ASCII-only Fixed now
                                                                              $endgroup$
                                                                              – Embodiment of Ignorance
                                                                              1 hour ago















                                                                            $begingroup$
                                                                            invalid... it's a list of strings
                                                                            $endgroup$
                                                                            – ASCII-only
                                                                            1 hour ago




                                                                            $begingroup$
                                                                            invalid... it's a list of strings
                                                                            $endgroup$
                                                                            – ASCII-only
                                                                            1 hour ago












                                                                            $begingroup$
                                                                            Also you can output [1D array of pixels, width, height]
                                                                            $endgroup$
                                                                            – ASCII-only
                                                                            1 hour ago




                                                                            $begingroup$
                                                                            Also you can output [1D array of pixels, width, height]
                                                                            $endgroup$
                                                                            – ASCII-only
                                                                            1 hour ago












                                                                            $begingroup$
                                                                            @ASCII-only Fixed now
                                                                            $endgroup$
                                                                            – Embodiment of Ignorance
                                                                            1 hour ago




                                                                            $begingroup$
                                                                            @ASCII-only Fixed now
                                                                            $endgroup$
                                                                            – Embodiment of Ignorance
                                                                            1 hour ago











                                                                            0












                                                                            $begingroup$

                                                                            HTML, 25 bytes



                                                                            Is this valid?



                                                                            <svg height=448 width=448


                                                                            Test it (background applied with CSS so you can "see" it)






                                                                            share|improve this answer









                                                                            $endgroup$

















                                                                              0












                                                                              $begingroup$

                                                                              HTML, 25 bytes



                                                                              Is this valid?



                                                                              <svg height=448 width=448


                                                                              Test it (background applied with CSS so you can "see" it)






                                                                              share|improve this answer









                                                                              $endgroup$















                                                                                0












                                                                                0








                                                                                0





                                                                                $begingroup$

                                                                                HTML, 25 bytes



                                                                                Is this valid?



                                                                                <svg height=448 width=448


                                                                                Test it (background applied with CSS so you can "see" it)






                                                                                share|improve this answer









                                                                                $endgroup$



                                                                                HTML, 25 bytes



                                                                                Is this valid?



                                                                                <svg height=448 width=448


                                                                                Test it (background applied with CSS so you can "see" it)







                                                                                share|improve this answer












                                                                                share|improve this answer



                                                                                share|improve this answer










                                                                                answered 3 hours ago









                                                                                ShaggyShaggy

                                                                                19.4k21667




                                                                                19.4k21667





















                                                                                    0












                                                                                    $begingroup$

                                                                                    JavaScript (ES6), 74 69 bytes






                                                                                    f=
                                                                                    (_=document.createElement`canvas`)=>_.toDataURL(_.height=_.width=448)
                                                                                    ;document.write(f());





                                                                                    Returns a PNG image encoded as a data: URL suitable e.g. for setting as the src of an HTMLImageElement. Edit: Saved 3 bytes thanks to @Shaggy and a further 2 bytes thanks to @Arnauld.






                                                                                    share|improve this answer











                                                                                    $endgroup$












                                                                                    • $begingroup$
                                                                                      71 bytes?
                                                                                      $endgroup$
                                                                                      – Shaggy
                                                                                      3 hours ago







                                                                                    • 1




                                                                                      $begingroup$
                                                                                      document.createElement`canvas` should work, saving 2 more bytes.
                                                                                      $endgroup$
                                                                                      – Arnauld
                                                                                      3 hours ago










                                                                                    • $begingroup$
                                                                                      If createelement is valid would seeing document.body and using the fact an id becomes a variable be valid? Also stack snippet pls
                                                                                      $endgroup$
                                                                                      – ASCII-only
                                                                                      3 hours ago















                                                                                    0












                                                                                    $begingroup$

                                                                                    JavaScript (ES6), 74 69 bytes






                                                                                    f=
                                                                                    (_=document.createElement`canvas`)=>_.toDataURL(_.height=_.width=448)
                                                                                    ;document.write(f());





                                                                                    Returns a PNG image encoded as a data: URL suitable e.g. for setting as the src of an HTMLImageElement. Edit: Saved 3 bytes thanks to @Shaggy and a further 2 bytes thanks to @Arnauld.






                                                                                    share|improve this answer











                                                                                    $endgroup$












                                                                                    • $begingroup$
                                                                                      71 bytes?
                                                                                      $endgroup$
                                                                                      – Shaggy
                                                                                      3 hours ago







                                                                                    • 1




                                                                                      $begingroup$
                                                                                      document.createElement`canvas` should work, saving 2 more bytes.
                                                                                      $endgroup$
                                                                                      – Arnauld
                                                                                      3 hours ago










                                                                                    • $begingroup$
                                                                                      If createelement is valid would seeing document.body and using the fact an id becomes a variable be valid? Also stack snippet pls
                                                                                      $endgroup$
                                                                                      – ASCII-only
                                                                                      3 hours ago













                                                                                    0












                                                                                    0








                                                                                    0





                                                                                    $begingroup$

                                                                                    JavaScript (ES6), 74 69 bytes






                                                                                    f=
                                                                                    (_=document.createElement`canvas`)=>_.toDataURL(_.height=_.width=448)
                                                                                    ;document.write(f());





                                                                                    Returns a PNG image encoded as a data: URL suitable e.g. for setting as the src of an HTMLImageElement. Edit: Saved 3 bytes thanks to @Shaggy and a further 2 bytes thanks to @Arnauld.






                                                                                    share|improve this answer











                                                                                    $endgroup$



                                                                                    JavaScript (ES6), 74 69 bytes






                                                                                    f=
                                                                                    (_=document.createElement`canvas`)=>_.toDataURL(_.height=_.width=448)
                                                                                    ;document.write(f());





                                                                                    Returns a PNG image encoded as a data: URL suitable e.g. for setting as the src of an HTMLImageElement. Edit: Saved 3 bytes thanks to @Shaggy and a further 2 bytes thanks to @Arnauld.






                                                                                    f=
                                                                                    (_=document.createElement`canvas`)=>_.toDataURL(_.height=_.width=448)
                                                                                    ;document.write(f());





                                                                                    f=
                                                                                    (_=document.createElement`canvas`)=>_.toDataURL(_.height=_.width=448)
                                                                                    ;document.write(f());






                                                                                    share|improve this answer














                                                                                    share|improve this answer



                                                                                    share|improve this answer








                                                                                    edited 3 hours ago

























                                                                                    answered 4 hours ago









                                                                                    NeilNeil

                                                                                    81.6k745178




                                                                                    81.6k745178











                                                                                    • $begingroup$
                                                                                      71 bytes?
                                                                                      $endgroup$
                                                                                      – Shaggy
                                                                                      3 hours ago







                                                                                    • 1




                                                                                      $begingroup$
                                                                                      document.createElement`canvas` should work, saving 2 more bytes.
                                                                                      $endgroup$
                                                                                      – Arnauld
                                                                                      3 hours ago










                                                                                    • $begingroup$
                                                                                      If createelement is valid would seeing document.body and using the fact an id becomes a variable be valid? Also stack snippet pls
                                                                                      $endgroup$
                                                                                      – ASCII-only
                                                                                      3 hours ago
















                                                                                    • $begingroup$
                                                                                      71 bytes?
                                                                                      $endgroup$
                                                                                      – Shaggy
                                                                                      3 hours ago







                                                                                    • 1




                                                                                      $begingroup$
                                                                                      document.createElement`canvas` should work, saving 2 more bytes.
                                                                                      $endgroup$
                                                                                      – Arnauld
                                                                                      3 hours ago










                                                                                    • $begingroup$
                                                                                      If createelement is valid would seeing document.body and using the fact an id becomes a variable be valid? Also stack snippet pls
                                                                                      $endgroup$
                                                                                      – ASCII-only
                                                                                      3 hours ago















                                                                                    $begingroup$
                                                                                    71 bytes?
                                                                                    $endgroup$
                                                                                    – Shaggy
                                                                                    3 hours ago





                                                                                    $begingroup$
                                                                                    71 bytes?
                                                                                    $endgroup$
                                                                                    – Shaggy
                                                                                    3 hours ago





                                                                                    1




                                                                                    1




                                                                                    $begingroup$
                                                                                    document.createElement`canvas` should work, saving 2 more bytes.
                                                                                    $endgroup$
                                                                                    – Arnauld
                                                                                    3 hours ago




                                                                                    $begingroup$
                                                                                    document.createElement`canvas` should work, saving 2 more bytes.
                                                                                    $endgroup$
                                                                                    – Arnauld
                                                                                    3 hours ago












                                                                                    $begingroup$
                                                                                    If createelement is valid would seeing document.body and using the fact an id becomes a variable be valid? Also stack snippet pls
                                                                                    $endgroup$
                                                                                    – ASCII-only
                                                                                    3 hours ago




                                                                                    $begingroup$
                                                                                    If createelement is valid would seeing document.body and using the fact an id becomes a variable be valid? Also stack snippet pls
                                                                                    $endgroup$
                                                                                    – ASCII-only
                                                                                    3 hours ago











                                                                                    0












                                                                                    $begingroup$

                                                                                    Rust - 206 bytes



                                                                                    use std::fs::File,io::Write;fn main()File::create("output.tga").unwrap().write(&vec![0,0,2,0,0,0,0,0,0,0,0,0,188,1,188,1,32,0].iter().chain(vec![0u8;788544].iter()).map(


                                                                                    This write an actual, readable .tga file, per http://paulbourke.net/dataformats/tga/ by hard coding the width,height, into the binary file header.






                                                                                    share|improve this answer









                                                                                    $endgroup$












                                                                                    • $begingroup$
                                                                                      does it need to be printed to a file though :P
                                                                                      $endgroup$
                                                                                      – ASCII-only
                                                                                      2 hours ago










                                                                                    • $begingroup$
                                                                                      does it even need to be 2 dimensional? I could just say [0;444*444*4]; and say i created a 444x444 transparent image. im making it interesting.
                                                                                      $endgroup$
                                                                                      – don bright
                                                                                      4 mins ago










                                                                                    • $begingroup$
                                                                                      well also a would work as file name would it not
                                                                                      $endgroup$
                                                                                      – ASCII-only
                                                                                      11 secs ago
















                                                                                    0












                                                                                    $begingroup$

                                                                                    Rust - 206 bytes



                                                                                    use std::fs::File,io::Write;fn main()File::create("output.tga").unwrap().write(&vec![0,0,2,0,0,0,0,0,0,0,0,0,188,1,188,1,32,0].iter().chain(vec![0u8;788544].iter()).map(


                                                                                    This write an actual, readable .tga file, per http://paulbourke.net/dataformats/tga/ by hard coding the width,height, into the binary file header.






                                                                                    share|improve this answer









                                                                                    $endgroup$












                                                                                    • $begingroup$
                                                                                      does it need to be printed to a file though :P
                                                                                      $endgroup$
                                                                                      – ASCII-only
                                                                                      2 hours ago










                                                                                    • $begingroup$
                                                                                      does it even need to be 2 dimensional? I could just say [0;444*444*4]; and say i created a 444x444 transparent image. im making it interesting.
                                                                                      $endgroup$
                                                                                      – don bright
                                                                                      4 mins ago










                                                                                    • $begingroup$
                                                                                      well also a would work as file name would it not
                                                                                      $endgroup$
                                                                                      – ASCII-only
                                                                                      11 secs ago














                                                                                    0












                                                                                    0








                                                                                    0





                                                                                    $begingroup$

                                                                                    Rust - 206 bytes



                                                                                    use std::fs::File,io::Write;fn main()File::create("output.tga").unwrap().write(&vec![0,0,2,0,0,0,0,0,0,0,0,0,188,1,188,1,32,0].iter().chain(vec![0u8;788544].iter()).map(


                                                                                    This write an actual, readable .tga file, per http://paulbourke.net/dataformats/tga/ by hard coding the width,height, into the binary file header.






                                                                                    share|improve this answer









                                                                                    $endgroup$



                                                                                    Rust - 206 bytes



                                                                                    use std::fs::File,io::Write;fn main()File::create("output.tga").unwrap().write(&vec![0,0,2,0,0,0,0,0,0,0,0,0,188,1,188,1,32,0].iter().chain(vec![0u8;788544].iter()).map(


                                                                                    This write an actual, readable .tga file, per http://paulbourke.net/dataformats/tga/ by hard coding the width,height, into the binary file header.







                                                                                    share|improve this answer












                                                                                    share|improve this answer



                                                                                    share|improve this answer










                                                                                    answered 2 hours ago









                                                                                    don brightdon bright

                                                                                    578411




                                                                                    578411











                                                                                    • $begingroup$
                                                                                      does it need to be printed to a file though :P
                                                                                      $endgroup$
                                                                                      – ASCII-only
                                                                                      2 hours ago










                                                                                    • $begingroup$
                                                                                      does it even need to be 2 dimensional? I could just say [0;444*444*4]; and say i created a 444x444 transparent image. im making it interesting.
                                                                                      $endgroup$
                                                                                      – don bright
                                                                                      4 mins ago










                                                                                    • $begingroup$
                                                                                      well also a would work as file name would it not
                                                                                      $endgroup$
                                                                                      – ASCII-only
                                                                                      11 secs ago

















                                                                                    • $begingroup$
                                                                                      does it need to be printed to a file though :P
                                                                                      $endgroup$
                                                                                      – ASCII-only
                                                                                      2 hours ago










                                                                                    • $begingroup$
                                                                                      does it even need to be 2 dimensional? I could just say [0;444*444*4]; and say i created a 444x444 transparent image. im making it interesting.
                                                                                      $endgroup$
                                                                                      – don bright
                                                                                      4 mins ago










                                                                                    • $begingroup$
                                                                                      well also a would work as file name would it not
                                                                                      $endgroup$
                                                                                      – ASCII-only
                                                                                      11 secs ago
















                                                                                    $begingroup$
                                                                                    does it need to be printed to a file though :P
                                                                                    $endgroup$
                                                                                    – ASCII-only
                                                                                    2 hours ago




                                                                                    $begingroup$
                                                                                    does it need to be printed to a file though :P
                                                                                    $endgroup$
                                                                                    – ASCII-only
                                                                                    2 hours ago












                                                                                    $begingroup$
                                                                                    does it even need to be 2 dimensional? I could just say [0;444*444*4]; and say i created a 444x444 transparent image. im making it interesting.
                                                                                    $endgroup$
                                                                                    – don bright
                                                                                    4 mins ago




                                                                                    $begingroup$
                                                                                    does it even need to be 2 dimensional? I could just say [0;444*444*4]; and say i created a 444x444 transparent image. im making it interesting.
                                                                                    $endgroup$
                                                                                    – don bright
                                                                                    4 mins ago












                                                                                    $begingroup$
                                                                                    well also a would work as file name would it not
                                                                                    $endgroup$
                                                                                    – ASCII-only
                                                                                    11 secs ago





                                                                                    $begingroup$
                                                                                    well also a would work as file name would it not
                                                                                    $endgroup$
                                                                                    – ASCII-only
                                                                                    11 secs ago












                                                                                    0












                                                                                    $begingroup$

                                                                                    SmileBASIC, 27 bytes



                                                                                    DIM A[448,448]SAVE"DAT:I",A


                                                                                    Saves a 2-dimensional 448x448 array filled with 0s to a file named DAT:I






                                                                                    share|improve this answer









                                                                                    $endgroup$

















                                                                                      0












                                                                                      $begingroup$

                                                                                      SmileBASIC, 27 bytes



                                                                                      DIM A[448,448]SAVE"DAT:I",A


                                                                                      Saves a 2-dimensional 448x448 array filled with 0s to a file named DAT:I






                                                                                      share|improve this answer









                                                                                      $endgroup$















                                                                                        0












                                                                                        0








                                                                                        0





                                                                                        $begingroup$

                                                                                        SmileBASIC, 27 bytes



                                                                                        DIM A[448,448]SAVE"DAT:I",A


                                                                                        Saves a 2-dimensional 448x448 array filled with 0s to a file named DAT:I






                                                                                        share|improve this answer









                                                                                        $endgroup$



                                                                                        SmileBASIC, 27 bytes



                                                                                        DIM A[448,448]SAVE"DAT:I",A


                                                                                        Saves a 2-dimensional 448x448 array filled with 0s to a file named DAT:I







                                                                                        share|improve this answer












                                                                                        share|improve this answer



                                                                                        share|improve this answer










                                                                                        answered 39 mins ago









                                                                                        12Me2112Me21

                                                                                        5,57711336




                                                                                        5,57711336



























                                                                                            draft saved

                                                                                            draft discarded
















































                                                                                            If this is an answer to a challenge…



                                                                                            • …Be sure to follow the challenge specification. However, please refrain from exploiting obvious loopholes. Answers abusing any of the standard loopholes are considered invalid. If you think a specification is unclear or underspecified, comment on the question instead.


                                                                                            • …Try to optimize your score. For instance, answers to code-golf challenges should attempt to be as short as possible. You can always include a readable version of the code in addition to the competitive one.
                                                                                              Explanations of your answer make it more interesting to read and are very much encouraged.


                                                                                            • …Include a short header which indicates the language(s) of your code and its score, as defined by the challenge.


                                                                                            More generally…



                                                                                            • …Please make sure to answer the question and provide sufficient detail.


                                                                                            • …Avoid asking for help, clarification or responding to other answers (use comments instead).




                                                                                            draft saved


                                                                                            draft discarded














                                                                                            StackExchange.ready(
                                                                                            function ()
                                                                                            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcodegolf.stackexchange.com%2fquestions%2f181409%2fmake-a-transparent-448448-image%23new-answer', 'question_page');

                                                                                            );

                                                                                            Post as a guest















                                                                                            Required, but never shown





















































                                                                                            Required, but never shown














                                                                                            Required, but never shown












                                                                                            Required, but never shown







                                                                                            Required, but never shown

































                                                                                            Required, but never shown














                                                                                            Required, but never shown












                                                                                            Required, but never shown







                                                                                            Required, but never shown







                                                                                            Popular posts from this blog

                                                                                            Are there any AGPL-style licences that require source code modifications to be public? Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?Force derivative works to be publicAre there any GPL like licenses for Apple App Store?Do you violate the GPL if you provide source code that cannot be compiled?GPL - is it distribution to use libraries in an appliance loaned to customers?Distributing App for free which uses GPL'ed codeModifications of server software under GPL, with web/CLI interfaceDoes using an AGPLv3-licensed library prevent me from dual-licensing my own source code?Can I publish only select code under GPLv3 from a private project?Is there published precedent regarding the scope of covered work that uses AGPL software?If MIT licensed code links to GPL licensed code what should be the license of the resulting binary program?If I use a public API endpoint that has its source code licensed under AGPL in my app, do I need to disclose my source?

                                                                                            2013 GY136 Descoberta | Órbita | Referências Menu de navegação«List Of Centaurs and Scattered-Disk Objects»«List of Known Trans-Neptunian Objects»

                                                                                            Button changing it's text & action. Good or terrible? The 2019 Stack Overflow Developer Survey Results Are Inchanging text on user mouseoverShould certain functions be “hard to find” for powerusers to discover?Custom liking function - do I need user login?Using different checkbox style for different checkbox behaviorBest Practices: Save and Exit in Software UIInteraction with remote validated formMore efficient UI to progress the user through a complicated process?Designing a popup notice for a gameShould bulk-editing functions be hidden until a table row is selected, or is there a better solution?Is it bad practice to disable (replace) the context menu?