Gradació P93740


Statement
 

Graphic problem

pdf   zip

html

Feu un programa que generi una imatge amb la intensitat de verd fixa donada, i amb totes les combinacions de vermell i blau.

Entrada

L’entrada consisteix en un natural g entre 0 i 255.

Sortida

Cal generar una imatge (256, 256) on cada punt (x, y) tingui color (x, g, y).

Public test cases
  • Input

    0
    

    Output

    sample-1.png

     (256×256)

  • Input

    150
    

    Output

    sample-2.png

     (256×256)

  • Information
    Author
    Salvador Roura
    Language
    Catalan
    Official solutions
    Python
    User solutions
    Python