Background Color for a Range? lazarus / 49-FPSpreadsheet ---------------------------------------------------------------------- Jvan · 2020-10-01 00:21 I'm using de the following code: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i for i:=0 to 10 do      WriteBackgroundColor(0, i, RGBToColor(235, 235, 235)); for i:=0 to 10 do      WriteBackgroundColor(1, i, RGBToColor(235, 235, 235)); But maybe there is a way for a range. ---------------------------------------------------------------------- winni · 2020-10-01 11:25 Hi! Tell us what  WriteBackgroundColor does. Setting a pixel? If yes then just do: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i ....With Canvas dobeginBrush.color := RGBToColor(235, 235, 235);Pen.Color := Brush.Color;Rectangle (0,0,2,11);end;  Winni ---------------------------------------------------------------------- paweld · 2020-10-01 13:16 Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i for i:=0 to 10 do  for j:=0 to 1 do    WriteBackgroundColor(j, i, RGBToColor(235, 235, 235));