1. Go to this page and download the library: Download jovian/venusian-ogx library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
jovian / venusian-ogx example snippets
use Jovian\Engines\OpenGL\OpenGLContext;
use Surface\Contracts\Graphics\Backend;
use Surface\Contracts\Rendering\Framebuffers\Region;
use Surface\Graphics\GEPainter;
use Surface\NutsAndBolts\Color;
use Surface\VelvetGE\Recording\PHPLandQueue;
use Surface\VelvetGE\Recording\VelvetRecorder;
->fillEllipse(150, 50, 30, 30, Color::rgba(64, 200, 255, 0.6)));
echo $gl->modules()['gpu'], "\n"; // Apple M1 Pro
echo bin2hex($frame->read(new Region(40, 40, 1, 1))), "\n"; // ff6b35ff
echo bin2hex($frame->read(new Region(150, 50, 1, 1))), "\n"; // 2d82a6ff
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.