Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
KMM Colorpicker App
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
ChungKyu Yu
January 16, 2024
Technology
54
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
KMM Colorpicker App
KMM 을 활용한 대표 컬러 찾기 프로젝트
LinkedIn :
https://www.linkedin.com/in/yuskyblue/
ChungKyu Yu
January 16, 2024
Transcript
32 slides
Kotlin Multi Platform Project : Color Picker [Blue Star] 옥수환
유청규
시연
Table of Contents Blue Star 1. 주제 선정 2. 참고
자료 3. 진행 과정 4. 종료 후기
주제선정
옥수환 - 주어진 이미지에서 대표 색상을 추출하고 싶다. 유청규 -
KMM 으로 간단하게 이미지를 처리하는 앱을 만들어 보고 싶다. 주제 선정 Blue Star
참고자료
참고 자료 Blue Star [XML] [Compose]
참고 자료 Blue Star
진행과정
진행 과정 Blue Star [옥수환] [유청규] XML + Compose 적용
후 -> KMP 좌표 값 색상 추출 적용 주어진 이미지에서 대표 컬러 구하는 Usecase 구현
진행과정 이미지 가져오기
진행 과정 - 이미지 가져오기 Blue Star commomMain (App Screen)
Android iOS 공통적인 뷰를 가지고 있으면서 Photo Picker 처럼 Dependency 있는 부분 각각 구현
진행 과정 - 이미지 가져오기 Blue Star Comm (Get Dominant
Color) Android iOS [image URL Format] Photo 형식을 URL형식으로 가져옴
진행과정 이미지 프로세싱
진행 과정 - 이미지 프로세싱 Blue Star [Image URL] URL
형식의 이미지를 Decode 하여 원하는 이미지 객체인 BSImage로 반환 [Use Case decode] BS Image [Image Object]
진행 과정 - 이미지 프로세싱 Blue Star [CommomMain] [androidMain] [iosMain]
진행 과정 - 이미지 프로세싱 Blue Star Android 예시 any
로 객체로 받아 디코딩 하여 원하는 이미지 객체 반환
진행과정 대표값 찾기
진행 과정 - 대표값 찾기 Blue Star Commommain (Get Dominant
Color) Android iOS
진행 과정 - 대표값 찾기 Blue Star CommomMain (Get Dominant
Color) Android iOS X Y X, Y를 돌면서 회색조 판단 Map 에 GrayScale 이미지 제외한 색깔을 Counting
진행 과정 - 대표값 찾기 Blue Star CommomMain (Get Dominant
Color) Android iOS
진행 과정 - 대표값 찾기 Blue Star CommomMain (Get Dominant
Color) Android iOS Most Common Color Value 산출
진행 과정 - 대표값 찾기 Blue Star commomMain (App Screen)
Android iOS
진행 과정 - 대표값 찾기 Blue Star commomMain (App Screen)
Android iOS 대표값 각 OS 별 삽입
진행과정 이미지 좌표 값 출력
진행 과정 - 이미지 좌표 값 출력 Blue Star Image
dominant Color Color Value [App Screen] image의 임의에 지점을 클릭
진행 과정 - 이미지 좌표 값 출력 Blue Star Image
dominant Color Color Value [App Screen] offset 좌표 값 추출 및 이미지 디코드 BSImage Color Value
진행 과정 - 이미지 좌표 값 출력 Blue Star Image
dominant Color Color Value [App Screen] BSImage Color Value CommomMain (GetColorByPos itionUseCase) 이미지 / 좌표값 / 비율
진행 과정 - 이미지 좌표 값 출력 Blue Star Image
dominant Color Color Value [App Screen] BSImage (255,165,0) CommomMain (GetColorByPos itionUseCase) 대표값 다시 적용 ex) orange -> purple
진행 과정 - 이미지 좌표 값 출력 Blue Star Image
dominant Color Color Value [App Screen] BSImage (160,32,240) CommomMain (GetColorByPos itionUseCase) 대표값 다시 적용 ex) orange -> purple
종료후기
종료 후기 Blue Star [옥수환] [유청규] KMP 는 유즈케이스에 대해
전반적인 설계 및 OS Dependency 생기지 않도록 만드는 것이 중요하다 KMM으로 프로젝트 진행시 코틀린으로 최대한 공통로직을 작성하고, 특수한 상황을 제외하고는 expect/actual을 통한 플랫폼 분기 구현은 최소화하는 게 좋을 것 같다.
Other Decks in Technology
See All in Technology
AWS Emulator を評価する: 手元で動く AWS の API の仕組み、始め方、確かめ方
inariku
PRO
2
770
LLM 基盤と kagent v0 を全部 k8s に入れてみた / Deploy both LLM and kagent v0 in k8s
kota2and3kan
0
240
文書画像からの情報抽出を行うエージェントを、軌跡の正解データ無しで作れるか
sansantech
PRO
2
210
AIネイティブ組織の作り方。1人のPOとAIから始める、自社での実験
ama_ch
2
1.2k
re:Inventを楽しむために、 1日1つ「これが楽しみ」を決めよう
beli68
0
120
Datadog の権限統制 〜Org 統合に向けて調べた注意点 / JDDUG-Meetup_24
visional_engineering_and_design
1
190
「個社」ではなく「業界」の課題を解く AI 対話開発 ー 価値を広げる設計と、価値を守るエンジニアリング ー
ivry_presentationmaterials
3
700
HTTP通信に使おうとすると実はめんどくさいfile_get_contents
maguroalternative
0
220
WasmをRustにする技術
sansantech
PRO
1
120
_マネジメントする人される人ナイト_2026__良いチームを作っていきたい_お気持ち_.pdf
xkxaxkx
0
810
設計手法を「道具」として使いこなすために
a_suenami
6
1.1k
Context parameters で作る!はじめての型クラス
kworkdev
PRO
1
150
Featured
See All Featured
Documentation Writing (for coders)
carmenintech
77
5.6k
Abbi's Birthday
coloredviolet
5
11k
Done Done
chrislema
187
17k
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
770
brightonSEO & MeasureFest 2025 - Winning Strategies for Black Friday CRO & PPC - Christian Goodrich
cargoodrich
3
900
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
2
3k
Practical Orchestrator
shlominoach
192
12k
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
70
69k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
Building the Perfect Custom Keyboard
takai
2
960
Building Flexible Design Systems
yeseniaperezcruz
330
41k
How to Think Like a Performance Engineer
csswizardry
28
2.9k