File tree 2 files changed +7
-3
lines changed
miniprojects/Wave_function_collapse/Overlap_model
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
1
(* *****************************************************************************)
2
2
(* Wave function collapse (Ovelap mode) 23.01.2024 *)
3
3
(* *)
4
- (* Version : 0.05 *)
4
+ (* Version : 0.06 *)
5
5
(* *)
6
6
(* Author : Uwe Schächterle (Corpsman) *)
7
7
(* *)
29
29
(* 0.03 - allow wrap *)
30
30
(* 0.04 - ADD: Constraint Editor *)
31
31
(* 0.05 - Show pattern infos *)
32
+ (* 0.06 - FIX: left right was swapped *)
32
33
(* *)
33
34
(* *****************************************************************************)
34
35
(*
334
335
Procedure TForm1.FormCreate (Sender: TObject);
335
336
Begin
336
337
Randomize;
337
- caption := ' Wave function collapse demo ver. 0.05 ' ;
338
+ caption := ' Wave function collapse demo ver. 0.06 ' ;
338
339
edit1.text := ' 3' ;
339
340
edit2.text := ' 40' ;
340
341
edit3.text := ' 40' ;
Original file line number Diff line number Diff line change 430
430
// Loop over the height of the image.
431
431
For j := 0 To IH - 1 Do Begin
432
432
For i := 0 To IW - 1 Do Begin
433
- col := Image.Canvas.Pixels[i , j];
433
+ col := Image.Canvas.Pixels[IW - i - 1 , j];
434
434
If (Not includes(color_table, col)) Then Begin
435
435
push(color_frequencies, 0 );
436
436
push(color_table, col);
620
620
621
621
End .
622
622
623
+
624
+
625
+
You can’t perform that action at this time.
0 commit comments