Skip to content

Commit e1edd15

Browse files
authored
Remove ! from _substitute_pixel + v0.4.0 (#84)
1 parent d8871d2 commit e1edd15

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

CHANGELOG.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
# Unreleased
22

3+
# v0.4.0
4+
35
## Features
46

57
- Introduced `save_img` argument in encryption/decryption functions to manually save the resultant image ([#83](https://github.com/Saransh-cpp/ChaoticEncryption.jl/pull/83))
68
- Introduced `debug` argument in encryption/decryption functions to print debug statements ([#83](https://github.com/Saransh-cpp/ChaoticEncryption.jl/pull/83))
79

8-
## Bug fixes
9-
10-
- Renamed `_substitute_pixel` to `_substitute_pixel!` to show the inplace alterations ([#83](https://github.com/Saransh-cpp/ChaoticEncryption.jl/pull/83))
11-
1210
## Optimisations
1311

1412
- Added `Bool` type to the `inplace` variable ([#83](https://github.com/Saransh-cpp/ChaoticEncryption.jl/pull/83))

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "ChaoticEncryption"
22
uuid = "8967581b-3fa7-4a60-bbed-8fff548a82df"
33
authors = ["Saransh Chopra"]
4-
version = "0.3.2"
4+
version = "0.4.0"
55

66
[deps]
77
Images = "916415d5-f1e6-5110-898d-aaa5f9f070e0"

docs/src/devdocs/algorithms.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ChaoticEncryption._substitution(
1515
inplace::Bool=false,
1616
debug::Bool=false
1717
)
18-
ChaoticEncryption._substitute_pixel!(
18+
ChaoticEncryption._substitute_pixel(
1919
pixel::RGB,
2020
key::Int64
2121
)

src/substitution.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ function _substitution(
5959

6060
# substitute all pixels in one go
6161
debug && @info "Substituting all pixels"
62-
@. image = _substitute_pixel!(image, keys)
62+
@. image = _substitute_pixel(image, keys)
6363

6464
if debug
6565
if type == :encrypt
@@ -91,7 +91,7 @@ See [`_substitution`](@ref) for more details.
9191
# Returns
9292
- `pixel::RGB`: Substituted pixel.
9393
"""
94-
_substitute_pixel!(pixel::RGB, key::Int64) = RGB(
94+
_substitute_pixel(pixel::RGB, key::Int64) = RGB(
9595
(trunc(Int, pixel.r * 255) key) / 255,
9696
(trunc(Int, pixel.g * 255) key) / 255,
9797
(trunc(Int, pixel.b * 255) key) / 255

0 commit comments

Comments
 (0)