Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #declare graphHeight = 50;
- #declare graphWidth = 50;
- #declare incrementX = -graphWidth / 2;
- #declare incrementY = -graphHeight / 2;
- #declare gridWidth = 0.07;
- #declare axesWidth = 0.5;
- #declare gridSpacing = 2;
- #declare tickMarkLength = 1.5;
- #declare graphXPos = incrementX;
- #declare graphYPos = incrementY;
- camera
- {
- location <0, 0, -graphHeight>
- look_at <0, 0, 0>
- }
- light_source
- {
- <0, 0, -graphHeight>
- color rgb <1, 1, 1>
- }
- #while (incrementY < graphHeight / 2)
- #while (incrementX < graphWidth / 2)
- box
- {
- <(incrementX) - (gridWidth / 2), -tickMarkLength / 2, 0>
- <(incrementX) + (gridWidth / 2), tickMarkLength / 2, 1>
- pigment
- {
- color rgb <1, 1, 1>
- }
- }
- #declare incrementX = incrementX + 1;
- #end
- box
- {
- <-tickMarkLength / 2, incrementY - (gridWidth / 2), 0>
- <tickMarkLength / 2, incrementY + (gridWidth / 2) , 1>
- pigment
- {
- color rgb <1, 1, 1>
- }
- }
- #declare incrementY = incrementY + 1;
- #end
- box
- {
- <-axesWidth / 2, -(graphHeight / 2), 0>
- <axesWidth / 2, graphHeight / 2, 0>
- pigment
- {
- color rgb <1, 0, 0>
- }
- }
- box
- {
- <-(graphWidth / 2), -axesWidth / 2 , 0>
- <(graphWidth / 2), axesWidth / 2, 1>
- pigment
- {
- color rgb <1, 0, 0>
- }
- }
- #declare varx = 5;
- #declare vary = 0;
- #declare varslope = 0;
- #while (
- #end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement