Skip to content

Commit 1ca5e33

Browse files
committed
adding new 2d transformation tutorial
1 parent 66e8785 commit 1ca5e33

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

generate/tutorials.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,16 @@
122122
copydirr($source.'pvector/imgs', $path.'learning/pvector/imgs', null, 0757, true);
123123
}
124124

125+
$page = new Page("2D Transformations", "Tutorials");
126+
$page->content(file_get_contents($source."transform2d/index.html"));
127+
writeFile('learning/transform2d/index.html', $page->out());
128+
if (!is_dir($path.'learning/transform2d/imgs')) {
129+
mkdir($path.'learning/transform2d/imgs', '0757');
130+
}
131+
if (is_dir($path.'learning/transform2d/imgs')) {
132+
copydirr($source.'transform2d/imgs', $path.'learning/transform2d/imgs', null, 0757, true);
133+
}
134+
125135
$benchmark_end = microtime_float();
126136
$execution_time = round($benchmark_end - $benchmark_start, 4);
127137

0 commit comments

Comments
 (0)