Small graphics fix #2
This commit is contained in:
parent
59dc2d2b32
commit
8e98537b30
3
trees.ml
3
trees.ml
|
@ -43,6 +43,7 @@ let delta i j =
|
||||||
|
|
||||||
let draw_integer x0 y n0 r =
|
let draw_integer x0 y n0 r =
|
||||||
(* 7-seg display *)
|
(* 7-seg display *)
|
||||||
|
set_line_width (max 1 (r/10));
|
||||||
let n = ref n0 in
|
let n = ref n0 in
|
||||||
let size = ln10 n0 in
|
let size = ln10 n0 in
|
||||||
let len = r/3 in
|
let len = r/3 in
|
||||||
|
@ -678,7 +679,7 @@ let rec detect_collision2 (tr : int abr2) haschanged (side : int ref) =
|
||||||
|
|
||||||
|
|
||||||
let decode2 (p : pt) r width height =
|
let decode2 (p : pt) r width height =
|
||||||
(width/2 + p.x/2 * r, height - r - (3*r)*p.y) ;;
|
(width/2 + (1+p.x)/2 * r, height - r - (3*r)*p.y) ;;
|
||||||
|
|
||||||
let raw_print (tr : int abr2) =
|
let raw_print (tr : int abr2) =
|
||||||
let rec aux t d = match t with
|
let rec aux t d = match t with
|
||||||
|
|
Loading…
Reference in New Issue