submission by jtoy for Flag (View the other submissions)
function setup(){
  var myCanvas = createCanvas(800,800); //you must keep this line unmodified

  //start writing your code here
  background(0,0,255)
  //translate(width/2,height/2)
  //rotate(radians(45))
  strokeWeight(100)
  stroke(255)
  line(0,0,width,height)
  line(0,height,width,0)
  strokeWeight(40)
  stroke(255,0,0)
  line(0,0,width,height)
  line(0,height,width,0)
  
  strokeWeight(100)
  stroke(255)
  line(width/2,0,width/2,height)
  line(0,height/2,width,height/2)
  strokeWeight(60)
  stroke(255,0,0)
  line(width/2,0,width/2,height)
  line(0,height/2,width,height/2)
}