https://github.com/kjunichi/mruby-imgtype
mrbgem for libimgtype(display image on cmd.exe)
https://github.com/kjunichi/mruby-imgtype
cmd image-viewer mruby windows
Last synced: 12 months ago
JSON representation
mrbgem for libimgtype(display image on cmd.exe)
- Host: GitHub
- URL: https://github.com/kjunichi/mruby-imgtype
- Owner: kjunichi
- License: mit
- Created: 2017-08-31T07:47:52.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-09-01T05:59:32.000Z (over 8 years ago)
- Last Synced: 2025-02-07T17:24:54.817Z (about 1 year ago)
- Topics: cmd, image-viewer, mruby, windows
- Language: C
- Size: 668 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mruby-imgtype [](https://ci.appveyor.com/project/kjunichi/mruby-imgtype)
Imgtype class
## install by mrbgems
- add conf.gem line to `build_config.rb`
```ruby
MRuby::Build.new do |conf|
# ... (snip) ...
conf.gem :github => 'kjunichi/mruby-imgtype'
end
```
## example
You need to install mruby-webcam.
```ruby
Imgtype.init
cam = Webcam.new
cam.setFmt "ppm"
cam.capture {|img|
Imgtype.imgtype img
}
while true
cam.snap
Sleep::usleep(1000)
if Imgtype.get_key == "ESC" then
break
end
end
Imgtype.close
```
## License
under the MIT License:
- see LICENSE file