I managed to Draw this Semi Logarithmic paper With there cycles, I am looking for help to make this through a function With parameters such as Number of cycles, range of values and the possibility to Draw expérimental values and draw curves on it.
-- SEMILOG
-- Use this function to perform your initial setup
function setup()
end
-- This function gets called once every frame
displayMode(FULLSCREEN)
function draw()
-- This sets a dark background color
font("AmericanTypewriter")
background(14, 17, 14, 255)
strokeWidth(2)
for i=0,100,10 do
line(60,math.log10(i)*200-120,1010,math.log10(i)*200-120)
line(60,math.log10(i)*200+200-120,1010,math.log10(i)*200+200-120)
line(60,math.log10(i)*200+400-120,1010,math.log10(i)*200+400-120)
text(""..i,25,math.log10(i)*200-120)
text(""..i*10,25,math.log10(i)*200+200-120)
text(""..i*100,25,math.log10(i)*200+400-120)
end
for j=60,1010,50 do
line(j,80,j,680)
text(""..(j-60)/50,j,60)
end
fontSize(16)
text("Semi Logarithmic Paper",WIDTH/2,HEIGHT-60)
end
Thanks for help in advance.