PHP code example of filmtools / speedpoint

1. Go to this page and download the library: Download filmtools/speedpoint 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/ */

    

filmtools / speedpoint example snippets


use FilmTools\SpeedPoint\SpeedPointInterface;  

use FilmTools\SpeedPoint\SpeedPointProviderInterface; 

use FilmTools\SpeedPoint\SpeedPoint;

// The exposure value where a density is reached
$logH = 0.46;

// Text description is optional. 
$sp = new SpeedPoint( $logH );
$sp = new SpeedPoint( $logH, "Description" );

// Examples:
$sp->getValue();        // 0.46
$sp->getSpeedLoss();    // 0.16
$sp->getEICorrection(); // -3.0
$sp->getType();         // "Description", may be null.