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
ChungKyu Yu
January 16, 2024
Technology
53
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
Other Decks in Technology
See All in Technology
DGX Spark でどこまでハッキングができるのか?
kash1064
3
1.3k
DevelopersIO 2026 知識の地図を描く ─ オントロジーとは何か?
ishikawa_satoru
1
1.7k
Running Kotlin + Quarkus with Lambda
nealle
1
3.7k
Rust で関数型ドメインモデリング
takonda
0
140
無理せず続ける、子育てエンジニアの学び
codmoninc
PRO
0
860
Getting Started with Google Antigravity
glaforge
0
300
WasmをRustにする
sansantech
PRO
0
250
大型犬好きによるPugの紹介
yamanoku
1
160
Benchmarking Disaggregated Serving on vLLM + Dynamo with a Real Coding-Agent Workload
nttcom
1
190
Webの常識が通じないHTMLメールのダークモード
teamlab
PRO
0
120
AI時代のPRレビューにどう向き合うか?
kairim0
1
240
二歩目のフロントエンド・ウェブアクセシビリティ
camiha
2
570
Featured
See All Featured
Done Done
chrislema
187
17k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
56
3.5k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
20k
AI: The stuff that nobody shows you
jnunemaker
PRO
10
1.2k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
2.2k
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
2
730
4 Signs Your Business is Dying
shpigford
187
23k
GraphQLとの向き合い方2022年版
quramy
50
15k
The Limits of Empathy - UXLibs8
cassininazir
2
720
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
330
Test your architecture with Archunit
thirion
2
2.4k
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
450
Transcript
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을 통한 플랫폼 분기 구현은 최소화하는 게 좋을 것 같다.