Skip to content

Commit

Permalink
First cut circuit
Browse files Browse the repository at this point in the history
  • Loading branch information
dagronf committed Aug 13, 2024
1 parent faba741 commit e7bcd89
Show file tree
Hide file tree
Showing 7 changed files with 559 additions and 33 deletions.
Binary file added Art/images/data_circuit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Art/paths.pcvd
Binary file not shown.
2 changes: 1 addition & 1 deletion DSF_QRCode.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = 'DSF_QRCode'
s.version = '20.4.2'
s.version = '20.5.0'
s.summary = 'A simple drop-in macOS/iOS/tvOS/watchOS QR Code generator view for Swift, Objective-C and SwiftUI.'
s.homepage = 'https://github.com/dagronf/QRCode'
s.license = { :type => 'MIT', :file => 'LICENSE' }
Expand Down
57 changes: 29 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,32 @@ The QRCode is made up of four distinct components

The 'shape' represents the way that each of the components are drawn

#### 'OnPixels' shape

The data shape represents how the 'pixels' within the QR code are displayed. By default, this is a simple square,
however you can supply a `PixelShape` object to custom-draw the data. There are built-in generators for a variety of styles.

| Preview | Name | Class | Description |
|---|---|---|---|
|<img src="./Art/images/data_blob.png" width="60"/> |"blob"|`QRCode.PixelShape.Blob`|A blobby style|
|<img src="./Art/images/data_circle.png" width="60"/> |"circle"|`QRCode.PixelShape.Circle`|A basic circle pixel|
|<img src="./Art/images/data_circuit.png" width="60"/> |"circuit"|`QRCode.PixelShape.Circuit`|Circuits!|
|<img src="./Art/images/data_crt.png" width="60"/> | "crt" |`QRCode.PixelShape.CRT`| A CRT shape |
|<img src="./Art/images/data_curvePixel.png" width="60"/> |"curvePixel"|`QRCode.PixelShape.CurvePixel`|A pixel that curves to follow paths|
|<img src="./Art/images/data_flower.png" width="60"/> |"flower"|`QRCode.PixelShape.Flower`|A 'flower' style|
|<img src="./Art/images/data_horizontal.png" width="60"/> |"horizontal"|`QRCode.PixelShape.Horizontal`|The pixels are horizonally joined to make continuous horizontal bars|
|<img src="./Art/images/data_pointy.png" width="60"/> |"pointy"|`QRCode.PixelShape.Pointy`|A 'pointy' style|
|<img src="./Art/images/data_razor.png" width="60"/> |"razor"|`QRCode.PixelShape.Razor`| A 'razor' style|
|<img src="./Art/images/data_roundedEndIndent.png" width="60"/> |"roundedEndIndent"|`QRCode.PixelShape.RoundedEndIndent`|Rounded path with circular indented ends|
|<img src="./Art/images/data_roundedPath.png" width="60"/> |"roundedPath"|`QRCode.PixelShape.RoundedPath`|A smooth rounded-edge path|
|<img src="./Art/images/data_roundedRect.png" width="60"/> |"roundedRect"|`QRCode.PixelShape.RoundedRect`|A basic rounded rectangle pixel with configurable radius|
|<img src="./Art/images/data_sharp.png" width="60"/> |"sharp"|`QRCode.PixelShape.Sharp`|A 'sharp' style|
|<img src="./Art/images/data_shiny.png" width="60" /> | "shiny" |`QRCode.PixelShape.Shiny` |A pixel style that appears 'shiny'|
|<img src="./Art/images/data_square.png" width="60"/> |"square"|`QRCode.PixelShape.Square`|A basic square pixel (default)|
|<img src="./Art/images/data_squircle.png" width="60"/> |"squircle"|`QRCode.PixelShape.Squircle`|A superellipse shape (somewhere between a square and a circle)|
|<img src="./Art/images/data_star.png" width="60"/> |"star"|`QRCode.PixelShape.Star`|A 'star' style|
|<img src="./Art/images/data_vertical.png" width="60"/> |"vertical"|`QRCode.PixelShape.Vertical`|The pixels are vertically joined to make continuous vertical bars|

#### Eye shape

You can provide an `EyeShape` object to style just the eyes of the generated qr code. There are built-in generators for
Expand Down Expand Up @@ -431,31 +457,6 @@ doc.design.style.onPixels = QRCode.FillStyle.Solid(0.624, 0.424, 0.400)

</details>

#### 'OnPixels' shape

The data shape represents how the 'pixels' within the QR code are displayed. By default, this is a simple square,
however you can supply a `PixelShape` object to custom-draw the data. There are built-in generators for a variety of styles.

| Preview | Name | Class | Description |
|---|---|---|---|
|<img src="./Art/images/data_blob.png" width="60"/> |"blob"|`QRCode.PixelShape.Blob`|A blobby style|
|<img src="./Art/images/data_circle.png" width="60"/> |"circle"|`QRCode.PixelShape.Circle`|A basic circle pixel|
|<img src="./Art/images/data_crt.png" width="60"/> | "crt" |`QRCode.PixelShape.CRT`| A CRT shape |
|<img src="./Art/images/data_curvePixel.png" width="60"/> |"curvePixel"|`QRCode.PixelShape.CurvePixel`|A pixel that curves to follow paths|
|<img src="./Art/images/data_flower.png" width="60"/> |"flower"|`QRCode.PixelShape.Flower`|A 'flower' style|
|<img src="./Art/images/data_horizontal.png" width="60"/> |"horizontal"|`QRCode.PixelShape.Horizontal`|The pixels are horizonally joined to make continuous horizontal bars|
|<img src="./Art/images/data_pointy.png" width="60"/> |"pointy"|`QRCode.PixelShape.Pointy`|A 'pointy' style|
|<img src="./Art/images/data_razor.png" width="60"/> |"razor"|`QRCode.PixelShape.Razor`| A 'razor' style|
|<img src="./Art/images/data_roundedEndIndent.png" width="60"/> |"roundedEndIndent"|`QRCode.PixelShape.RoundedEndIndent`|Rounded path with circular indented ends|
|<img src="./Art/images/data_roundedPath.png" width="60"/> |"roundedPath"|`QRCode.PixelShape.RoundedPath`|A smooth rounded-edge path|
|<img src="./Art/images/data_roundedRect.png" width="60"/> |"roundedRect"|`QRCode.PixelShape.RoundedRect`|A basic rounded rectangle pixel with configurable radius|
|<img src="./Art/images/data_sharp.png" width="60"/> |"sharp"|`QRCode.PixelShape.Sharp`|A 'sharp' style|
|<img src="./Art/images/data_shiny.png" width="60" /> | "shiny" |`QRCode.PixelShape.Shiny` |A pixel style that appears 'shiny'|
|<img src="./Art/images/data_square.png" width="60"/> |"square"|`QRCode.PixelShape.Square`|A basic square pixel (default)|
|<img src="./Art/images/data_squircle.png" width="60"/> |"squircle"|`QRCode.PixelShape.Squircle`|A superellipse shape (somewhere between a square and a circle)|
|<img src="./Art/images/data_star.png" width="60"/> |"star"|`QRCode.PixelShape.Star`|A 'star' style|
|<img src="./Art/images/data_vertical.png" width="60"/> |"vertical"|`QRCode.PixelShape.Vertical`|The pixels are vertically joined to make continuous vertical bars|

#### 'offPixels' shape (optional)

You can specify a shape to be drawn when a data 'pixel' is _off_. This can be used to make your qr code prettier.
Expand Down Expand Up @@ -1150,9 +1151,9 @@ OPTIONS:
--all-pixel-shapes <all-pixel-shapes>
Print all the available pixel shapes.
-d, --on-pixel-shape <on-pixel-shape>
The onPixels shape to use. Available shapes are crt, circle, curvePixel, flower, horizontal,
pointy, razor, roundedEndIndent, roundedPath, roundedRect, sharp, shiny, square, squircle,
star, vertical.
The onPixels shape to use. Available shapes are blob, crt, circle, circuit, curvePixel,
flower, horizontal, pointy, razor, roundedEndIndent, roundedPath, roundedRect, sharp, shiny,
square, squircle, star, vertical.
-n, --on-pixel-inset-fraction <on-pixel-inset-fraction>
The spacing around each individual pixel in the onPixels section
-r, --on-pixel-shape-corner-radius <on-pixel-shape-corner-radius>
Expand Down
Loading

0 comments on commit e7bcd89

Please sign in to comment.