Static resource URL in Drupal 8 theme
Check out file_create_url() function:

Example of usage in a preprocess hook:

$variables['image'] = file_create_url($variables['directory'] . '/images/image.png');


Example of usage in a twig template:

 &lt;img src="{{ file_url(directory ~ '/images/image.png') }}"/&gt;