Add php files

This commit is contained in:
2025-05-12 15:44:39 +00:00
parent c951760058
commit 82d5804ac4
9534 changed files with 2638137 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
<?php
/**
* Sugar: to make stars easier sometimes
*/
class s_star extends star
{
/**
* I use this wrapper for default dot types,
* it just makes the code easier to read.
*/
function s_star($colour, $size)
{
parent::star();
$this->colour($colour)->size($size);
}
}
class s_box extends anchor
{
/**
* I use this wrapper for default dot types,
* it just makes the code easier to read.
*/
function s_box($colour, $size)
{
parent::anchor();
$this->colour($colour)->size($size)->rotation(45)->sides(4);
}
}
class s_hollow_dot extends hollow_dot
{
/**
* I use this wrapper for default dot types,
* it just makes the code easier to read.
*/
function s_hollow_dot($colour, $size)
{
parent::hollow_dot();
$this->colour($colour)->size($size);
}
}