Skip to content
This repository has been archived by the owner on Jul 8, 2022. It is now read-only.

Commit

Permalink
Synchronized from korlibs, nmpp and badges
Browse files Browse the repository at this point in the history
  • Loading branch information
soywiz committed Oct 14, 2018
1 parent 73fbffc commit 1d2b105
Show file tree
Hide file tree
Showing 200 changed files with 5,892 additions and 2,775 deletions.
13 changes: 9 additions & 4 deletions .editorconfig
@@ -1,5 +1,10 @@
root = true

[*]
end_of_line = lf
indent_style = tab
charset=utf-8
end_of_line=lf
insert_final_newline=true
indent_style=space
indent_size=4

[*.json]
indent_size=2

9 changes: 6 additions & 3 deletions .gitignore
@@ -1,6 +1,9 @@
/.gradle
/.idea
/.gradle
/build
/target
/out
/classes
/out
/web
*.ipr
*.iws
*.iml
67 changes: 43 additions & 24 deletions .travis.yml
@@ -1,25 +1,44 @@
language: java
matrix:
include:
- os: linux
language: java
jdk: oraclejdk8
env: KBUILD=linux
install:
- nvm install 8
- nvm use 8
- node --version
- npm -g install mocha
- which node
- which mocha
script:
- ./gradlew -s -i check build
- os: windows
env: KBUILD=windows
language: shell # java is not supported but jdk is installed
script:
- powershell -Command "cmd /c travis_win.bat"
- os: osx
env: KBUILD=macos
language: java
jdk: oraclejdk8
install:
- nvm install 8
- nvm use 8
- node --version
- npm -g install mocha
- which node
- which mocha
script:
- ./gradlew -s -i check build

jdk:
- oraclejdk8

install:
- nvm install 8
- nvm use 8
- node --version
- npm -g install mocha
- sudo apt-get -y install libcairo2-dev libjpeg8-dev libpango1.0-dev libgif-dev build-essential g++
- npm -g install canvas
- which node
- which mocha

script:
- gradle -s -i check install

before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock

cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
#before_cache:
# - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
# - rm -f $HOME/.gradle-linux/caches/modules-2/modules-2.lock
# - rm -f $HOME/.gradle-win/caches/modules-2/modules-2.lock
#
#cache:
# directories:
# - $HOME/.gradle/caches/
# - $HOME/.gradle/wrapper/
# - $HOME/.konan
46 changes: 46 additions & 0 deletions LICENSE
@@ -0,0 +1,46 @@
MIT License

Copyright (c) 2017 Carlos Ballesteros Velasco

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

----------

For korim-qr:

The MIT License (MIT)
---------------------
Copyright (c) 2012 davidshimjs

Permission is hereby granted, free of charge,
to any person obtaining a copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
66 changes: 2 additions & 64 deletions README.md
@@ -1,67 +1,5 @@
## Korim: Kotlin cORoutines IMaging utilities depending on Korio for JVM, Kotlin-JS, Android, Jtransc+Node.JS and Jtransc+Browser
# Korim

[![Build Status](https://travis-ci.org/korlibs/korim.svg?branch=master)](https://travis-ci.org/korlibs/korim)
[![Maven Version](https://img.shields.io/github/tag/korlibs/korim.svg?style=flat&label=maven)](http://search.maven.org/#search%7Cga%7C1%7Ca%3A%22korim%22)

![](https://raw.githubusercontent.com/korlibs/kor/master/logos/128/korim.png)

[All KOR libraries](https://github.com/korlibs/kor)

Use with gradle:

```
compile "com.soywiz:korim:$korVersion"
```

### Bitmap classes

Bitmap base class + Bitmap8 and Bitmap32.
And other fancy bitmaps: BitmapIndexed as base + Bitmap1, Bitmap2, Bitmap4
Ad BitmapChannel

### Image Formats

Korim provides utilities for reading and writing some image formats without any kind of additional dependency.

PNG, JPG, TGA, BMP, ICO, PSD(WIP) and DDS (DXT1, DXT2, DXT3, DXT4 and DXT5).

### Native Image Formats

Korim also allows to use native image readers from your device for maximum performance for standard image formats.

### Color Formats

Korim provides color formats to convert easily and fast and to perform, mixing, de/premultiplication and other operations quickly.

### Vectorial Image Formats

Korim supports loading, rasterizing and drawing vectorial SVG files.

### Native vectorial rendering

It provides a single interface for vector rendering so you can use a single interface
and leverage JavaScript Canvas, AWT's Graphics2D, Android Canvas or any other rasterizer exposed by korim implementations.
It also allows to convert shapes into SVG.
Includes a feature to draw shapes with fills in contact without artifacts in a portable way by multisampling.
Useful for offline rasterizers.

### AWT Utilities

Korim provides AWT utilities to convert bitmaps into AWT BufferedImages, and to display them.
These are just extensions so not referenced from the main code.
And if you use native image loading, you can display those images as fast as possible without any conversion at all.

### Native Fonts

Korim provides native font rendering. You can rasterize glyph fonts on all targets without
actually including any font, using device fonts.

### TTF Reading and rendering

Korim provides a pure Kotlin-Common TTF reader, and using native vectorial rendering allows you to
render glyphs, texts and to get advanced font metrics.

### Korio integration

Korim provides korio integration adding `VfsFile.readBitmap()` that allows Bitmap reading easily
and faster (with native implementations) in some targets like browsers.
[![Gitter](https://img.shields.io/gitter/room/korlibs/korlibs.svg)](https://gitter.im/korlibs/Lobby)
27 changes: 27 additions & 0 deletions README.md.template
@@ -0,0 +1,27 @@
# KorTemplate

Template

[![Build Status](https://travis-ci.org/korlibs/kortemplate.svg?branch=master)](https://travis-ci.org/korlibs/kortemplate)
[![Maven Version](https://img.shields.io/github/tag/korlibs/kortemplate.svg?style=flat&label=maven)](http://search.maven.org/#search%7Cga%7C1%7Ca%3A%22kortemplate%22)
[![Gitter](https://img.shields.io/gitter/room/korlibs/korlibs.svg)](https://gitter.im/korlibs/Lobby)

Use with gradle (uploaded to bintray and synchronized to jcenter):

```
def kortemplateVersion = "1.0.0-alpha-1"

repositories {
maven { url "https://dl.bintray.com/soywiz/soywiz" }
}

compile "com.soywiz:kortemplate-jvm:$kortemplateVersion" // JVM/Android
compile "com.soywiz:kortemplate-js:$kortemplateVersion" // JavaScript
compile "com.soywiz:kortemplate-iosarm32:$kortemplateVersion" // Older iOS devices
compile "com.soywiz:kortemplate-iosarm64:$kortemplateVersion" // New iOS devices
compile "com.soywiz:kortemplate-iosx64:$kortemplateVersion" // Simulator
compile "com.soywiz:kortemplate-linuxx64:$kortemplateVersion" // Linux x64
compile "com.soywiz:kortemplate-macosx64:$kortemplateVersion" // MacOS
compile "com.soywiz:kortemplate-mingwx64:$kortemplateVersion" // Windows x64
compile "com.soywiz:kortemplate-common:$kortemplateVersion" // Common (just expect 2 decls in kortemplate)
```

0 comments on commit 1d2b105

Please sign in to comment.