Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.

Differences Between: [Versions 310 and 402] [Versions 311 and 402] [Versions 39 and 402]

(no description)

File Size: 1327 lines (52 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: GeoPattern  - X-Ref

__construct($options=array()   X-Ref
No description

setString($string)   X-Ref
No description

getString()   X-Ref

return: string

setBaseColor($baseColor)   X-Ref
No description

setColor($color)   X-Ref
No description

setGenerator($generator)   X-Ref
No description

toSVG()   X-Ref
No description

toBase64()   X-Ref
No description

toDataURI()   X-Ref
No description

toDataURL()   X-Ref
No description

__toString()   X-Ref
No description

generateBackground()   X-Ref
No description

generatePattern()   X-Ref
No description

geoHexagons()   X-Ref
No description

geoSineWaves()   X-Ref
No description

geoChevrons()   X-Ref
No description

geoPlusSigns()   X-Ref
No description

geoXes()   X-Ref
No description

geoOverlappingCircles()   X-Ref
No description

geoOctogons()   X-Ref
No description

geoSquares()   X-Ref
No description

geoConcentricCircles()   X-Ref
No description

geoOverlappingRings()   X-Ref
No description

geoTriangles()   X-Ref
No description

geoTrianglesRotated()   X-Ref
No description

geoDiamonds()   X-Ref
No description

geoNestedSquares()   X-Ref
No description

geoMosaicSquares()   X-Ref
No description

geoPlaid()   X-Ref
No description

geoTessellation()   X-Ref
No description

buildChevronShape($width, $height)   X-Ref
No description

buildOctogonShape($squareSize)   X-Ref
No description

buildHexagonShape($sideLength)   X-Ref
No description

buildPlusShape($squareSize)   X-Ref
No description

buildTriangleShape($sideLength, $height)   X-Ref
No description

buildRotatedTriangleShape($sideLength, $width)   X-Ref
No description

buildRightTriangleShape($sideLength)   X-Ref
No description

buildDiamondShape($width, $height)   X-Ref
No description

drawInnerMosaicTile($x, $y, $triangleSize, $vals)   X-Ref
No description

drawOuterMosaicTile($x, $y, $triangleSize, $val)   X-Ref
No description

fillColor($val)   X-Ref
No description

opacity($val)   X-Ref
No description

hexVal($index, $len)   X-Ref
No description

map($value, $vMin, $vMax, $dMin, $dMax)   X-Ref
No description

hexToHSL($color)   X-Ref
No description

hexToRGB($hex)   X-Ref
No description

rgbToHSL($r, $g, $b)   X-Ref
No description

hslToRGB($h, $s, $l)   X-Ref
No description

rgbToHex($r, $g, $b)   X-Ref
No description