Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hornetseye-xorg

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hornetseye-xorg

  • 1.0.9
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

hornetseye-xorg

Author: Jan Wedekind Copyright: 2010 License: GPL

Synopsis

This Ruby extension provides graphical output under X.Org.

Installation

hornetseye-xorg requires the X.Org and Mesa development headers. If you are running Debian or (K)ubuntu, you can install them like this:

$ sudo aptitude install xserver-xorg-dev libxv-dev libxpm-dev libgl1-mesa-dev libglu1-mesa-dev libswscale-dev libboost-dev

To install this Ruby extension, use the following command:

$ sudo gem install hornetseye-xorg

Alternatively you can build and install the Ruby extension from source as follows:

$ rake
$ sudo rake install

Usage

Simply run Interactive Ruby:

$ irb

You can load and use the X.Org wrappers as shown below. This example shows how to display an image:

require 'rubygems'
require 'hornetseye_xorg'
include Hornetseye
img = lazy( 640, 480 ) { RGB 255, 0, 0 }
img.show

Here is another example. It demonstrates display of a video:

require 'rubygems'
require 'hornetseye_xorg'
include Hornetseye
X11Display.show do
  lazy( 320, 240 ) { RGB ( Time.new.to_f * 256 ) % 256, 0, 0 }
end

FAQs

Package last updated on 07 Mar 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc