• Stars
    star
    3,142
  • Rank 13,704 (Top 0.3 %)
  • Language
    JavaScript
  • License
    GNU General Publi...
  • Created over 7 years ago
  • Updated 8 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Generate artistic QR code. 🎨

qart.js

CDNJS Downloads Version License
Merges Pictures and QR Codes for Artistic QR Codes.

Glance At

https://kciter.github.io/qart.js/

Installation

NPM

$ npm install qartjs

or clone this repository and copy qart.min.js to your project.

CDN

<script src="https://cdnjs.cloudflare.com/ajax/libs/qartjs/1.0.2/qart.min.js"></script>

Usage

In the browser

<script src="../dist/qart.min.js"></script>
<script>
  // directly appending canvas to the document
  new QArt({
    value: value,
    imagePath: './example.png',
    filter: filter,
    size: 195
	}).make(document.getElementById('qart'));

	// using callback
	new QArt({
      value: value,
      imagePath: './example.png',
      filter: filter,
      size: 195
  	}).make(function (canvas) {
  	  document.getElementById('qart').appendChild(canvas)
  	});
</script>

With ES6

import QArt from 'qartjs';
const qart = new QArt({
  value: value,
  imagePath: './example.png',
  filter: filter,
  size: 195
});

// directly appending canvas to the document
qart.make(document.getElementById('qart'))

// using callback
qart.make((canvas) => {
  document.getElementById('qart').appendChild(canvas);
});

With React

This is a simple implementation of QArt as React Component. react-qart

With Angular.JS

There is a directive available for using qart.js in Angular.js: angular-qart

With Vue 2.x

There is a directive available for using qart.js in Vue.js 2.x : vue-qart

Options

Field Type Description Default
value String The data of the QR code. Required
imagePath String The path of the combined image. Required
filter String Define an image filter. threshold or color threshold
size Integer Define an image size in pixels. 195
version Integer QRCode version (1 <= version <= 40) 10
background CSSColor Implement background if exist undefinded
fillType scale_to_fit/fill Place image type(fill or scale to fit) scale_to_fit

Dependency

Inspire

TODO

  • Server-Side Rendering.
  • CLI Command.

Donate

If you like this open source, you can sponsor it. πŸ˜„

LICENSE

GPLv3

More Repositories

1

Floaty

❀️ Floating Action Button for iOS
Swift
1,541
star
2

awesome-style-guide

A list of awesome⭐style guide.
Ruby
1,058
star
3

GlitchLabel

G..lit...c...hing UILa..bel fo..r iO...S πŸ“Ί
Swift
1,038
star
4

react-barcode

A <Barcode/> component for use with React.
Makefile
287
star
5

HorizontalDial

A horizontal scroll dial like Instagram.
Swift
210
star
6

simple-slack-bot

You can easily make Slack Bot!! ⭐
Ruby
159
star
7

aws-ecr-action

This Action allows you to create Docker images and push into a ECR repository.
Shell
124
star
8

SelectionDialog

Simple selection dialog
Swift
117
star
9

jazzlang

μƒ€λΉ±λ‘λΉ„λšœλ°₯ 두비두비두비두비 λšœλΉ„λ‘λ°₯ 사바두비두봐 샀바닀 두뢸둑 🎷
HTML
115
star
10

FBLiveAPISample-iOS

Facebook Live API Sample for iOS
Swift
56
star
11

thing

A rule-based entity management library written in Kotlin
Kotlin
56
star
12

vimgolf-finder

Simple VimGolf challenge finder. πŸ”Ž
Ruby
48
star
13

MySQLForNonDeveloper

λΉ„κ°œλ°œμžλ₯Ό μœ„ν•œ MySQL ⁽(ΛƒΜ΅ΝˆΜ‘α΄—Λ‚Μ΅ΝˆΜ‘)⁽
34
star
14

vue-ime-model

v-model directive for countries using IME.
JavaScript
26
star
15

RxGoogleMaps

RxGoogleMaps is a RxSwift wrapper for GoogleMaps delegate.
Swift
24
star
16

RxAutoUpdater

Auto update to data for UITableView/UICollectionView
Swift
23
star
17

terraform-apply-for-aws-action

Create, change, and improve AWS infrastructure by Terraform.
Shell
21
star
18

OnlyDesignable

This is only a collection of designable views for storyboards.
Swift
20
star
19

NNGameFramework

λ„₯슀트 학생듀을 μœ„ν•œ κ°„λ‹¨ν•œ 2D ν”„λ ˆμž„μ›Œν¬
C
18
star
20

daily

daily run your routine commands very easy! πŸ‘
Shell
17
star
21

eos-project-vue-boilerplate-simple

Rewrite (https://github.com/EOSIO/eosio-project-boilerplate-simple) to Vue.js
Shell
13
star
22

dead-toast

🍞 Dead simple Javascript Toast like Android.
JavaScript
12
star
23

NNEngine

NHN NEXT Game Engine
C++
10
star
24

resume

Lee Sun-Hyoup's RΓ©sumΓ©
HTML
9
star
25

slack_hungry

Slack λ°₯ 메뉴 μΆ”μ²œ 봇.
Python
7
star
26

DeepLearningTetris

Python
7
star
27

laravel-vue-bootstrap

PHP
7
star
28

polymorphic-react-component-sample

TypeScript
6
star
29

vue-weather

JavaScript
5
star
30

HangeulKit

Swift
5
star
31

qart-cli

QArt.js for CLI
4
star
32

dotfiles

Shell
4
star
33

jquery-simple-chart

jQuery 차트 ν”ŒλŸ¬κ·ΈμΈ μž…λ‹ˆλ‹€.
JavaScript
4
star
34

RainyDay

3
star
35

kciter

3
star
36

notevuek

JavaScript
3
star
37

brainfuck-impl

Brainfuck implementations each other in different languages.
JavaScript
3
star
38

TreeStana

JavaScript
3
star
39

vue-stagram

JavaScript
2
star
40

kciter.github.io

TypeScript
2
star
41

FlappyBirdClone

FlappyBirdClone
2
star
42

microfrontend-sample

JavaScript
2
star
43

next-subsystem

TypeScript
2
star
44

iOS-FinishTest

Swift
2
star
45

mf-sdu-test

TypeScript
2
star
46

vuex-counter-example

JavaScript
2
star
47

pokestop-alram

ν¬μΌ€μŠ€νƒ‘ μ•ŒλžŒμž„
Shell
2
star
48

Android-FinishTest

Java
1
star
49

jenkins-pipeline-test

JavaScript
1
star
50

expandable-spring-architecture

1
star